pub struct ProcessIdentity { /* private fields */ }Expand description
A process identity made from its ID and creation time.
Pairing both values prevents a recycled PID from identifying an unrelated newer process.
Implementations§
Source§impl ProcessIdentity
impl ProcessIdentity
Sourcepub fn from_raw_parts(
pid: u32,
creation_time_100ns_since_1601: u64,
) -> Result<Self>
pub fn from_raw_parts( pid: u32, creation_time_100ns_since_1601: u64, ) -> Result<Self>
Builds an identity from a process ID and a Windows FILETIME value.
The creation time is counted in 100-nanosecond units since 1601-01-01 UTC. PID 0 and the native invalid sentinel are rejected.
Sourcepub const fn creation_time_100ns_since_1601(self) -> u64
pub const fn creation_time_100ns_since_1601(self) -> u64
Returns the creation time in 100-nanosecond ticks since 1601-01-01 UTC.
Trait Implementations§
Source§impl Clone for ProcessIdentity
impl Clone for ProcessIdentity
Source§fn clone(&self) -> ProcessIdentity
fn clone(&self) -> ProcessIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProcessIdentity
Source§impl Debug for ProcessIdentity
impl Debug for ProcessIdentity
impl Eq for ProcessIdentity
Source§impl Hash for ProcessIdentity
impl Hash for ProcessIdentity
Source§impl PartialEq for ProcessIdentity
impl PartialEq for ProcessIdentity
impl StructuralPartialEq for ProcessIdentity
Auto Trait Implementations§
impl Freeze for ProcessIdentity
impl RefUnwindSafe for ProcessIdentity
impl Send for ProcessIdentity
impl Sync for ProcessIdentity
impl Unpin for ProcessIdentity
impl UnsafeUnpin for ProcessIdentity
impl UnwindSafe for ProcessIdentity
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