pub struct Id {
pub pid: u32,
pub start: u64,
}Expand description
A process, as distinct from its pid: pids are reused, and a reused pid
must not inherit the old process’s CPU. start is the kernel’s own start
stamp (Linux starttime, macOS ri_proc_start_abstime) — compared for
equality only, never converted to wall time.
Fields§
§pid: u32§start: u64Trait Implementations§
impl Copy for Id
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnsafeUnpin for Id
impl UnwindSafe for Id
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