You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
443 B
Rust
18 lines
443 B
Rust
|
|
//! Integration-test-example crate
|
|
//!
|
|
//! This is a library that contains functions related to dealing with processes
|
|
//! , and makes these tasks more convenient.
|
|
|
|
use std::process;
|
|
/// This function gets the process id of the current executable. It returns a non-zero number
|
|
/// ```
|
|
/// fn get_id() {
|
|
/// let x = integ_test_example::get_process_id();
|
|
/// println!("{}",x);
|
|
/// }
|
|
/// ```
|
|
pub fn get_process_id() -> u32 {
|
|
process::id()
|
|
}
|