pub struct Pid(pub u32);Expand description
Process ID.
Tuple Fields§
§0: u32Implementations§
Source§impl Pid
impl Pid
Sourcepub fn get_start_time(self) -> Result<SystemTime>
pub fn get_start_time(self) -> Result<SystemTime>
Gets the start time of the process.
Sourcepub fn get_start_time_or_max(self) -> SystemTime
pub fn get_start_time_or_max(self) -> SystemTime
Gets the start time of the process.
#![feature(time_systemtime_limits)] is not stable yet.
Source§impl Pid
impl Pid
pub fn with_process<R>( self, refresh_info: ProcessRefreshKind, f: impl FnOnce(&Process) -> R, ) -> Option<R>
Available on crate feature
sysinfo only.pub fn image_path(self) -> Option<PathBuf>
Available on crate feature
sysinfo only.Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pid
impl<'de> Deserialize<'de> for Pid
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Pid
impl Eq for Pid
impl StructuralPartialEq for Pid
Auto Trait Implementations§
impl Freeze for Pid
impl RefUnwindSafe for Pid
impl Send for Pid
impl Sync for Pid
impl Unpin for Pid
impl UnsafeUnpin for Pid
impl UnwindSafe for Pid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more