pub struct Observation {
pub start_time: u64,
pub executable: Option<FileIdentity>,
}Expand description
What a live process looks like right now.
Fields§
§start_time: u64The kernel’s start time for the process. Opaque: compare it only with a value read on the same host by this crate. Linux counts clock ticks since boot; macOS counts microseconds since the epoch; Windows counts 100 ns intervals since the Windows epoch.
executable: Option<FileIdentity>The file the process is executing, or None if it could not be read
(for example, a process owned by another user).
Windows uses the full file ID in SpawnedImage instead of a Unix inode;
this field is always None there.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
impl Copy for Observation
Source§impl Debug for Observation
impl Debug for Observation
impl Eq for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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