pub trait PidExt:
Copy
+ From<usize>
+ FromStr
+ Display {
// Required methods
fn as_u32(self) -> u32;
fn from_u32(v: u32) -> Self;
}Expand description
Trait to have a common conversions for the Pid type.
use sysinfo::{Pid, PidExt};
let p = Pid::from_u32(0);
let value: u32 = p.as_u32();Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.