pub struct VmmProcess { /* private fields */ }Expand description
Stable identity for a VM monitor process.
Implementations§
Source§impl VmmProcess
impl VmmProcess
pub fn pid(&self) -> u32
pub fn start_time_ticks(&self) -> Option<u64>
Sourcepub fn new(pid: u32, start_time_ticks: Option<u64>) -> Self
pub fn new(pid: u32, start_time_ticks: Option<u64>) -> Self
Create a stable VM monitor process identity.
start_time_ticks should come from the process start-time field in
/proc/<pid>/stat when available so the identity can detect PID reuse.
Pass None only when the platform cannot provide that information.
Trait Implementations§
Source§impl Clone for VmmProcess
impl Clone for VmmProcess
Source§fn clone(&self) -> VmmProcess
fn clone(&self) -> VmmProcess
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VmmProcess
impl Debug for VmmProcess
Source§impl PartialEq for VmmProcess
impl PartialEq for VmmProcess
impl Eq for VmmProcess
impl StructuralPartialEq for VmmProcess
Auto Trait Implementations§
impl Freeze for VmmProcess
impl RefUnwindSafe for VmmProcess
impl Send for VmmProcess
impl Sync for VmmProcess
impl Unpin for VmmProcess
impl UnsafeUnpin for VmmProcess
impl UnwindSafe for VmmProcess
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