pub struct SystemMonitor { /* private fields */ }Expand description
Shared system info handle. sysinfo::System is not Sync, so we wrap in Mutex.
Implementations§
Source§impl SystemMonitor
impl SystemMonitor
pub fn new() -> Self
Sourcepub fn snapshot(&self) -> SystemState
pub fn snapshot(&self) -> SystemState
Refresh and snapshot current system state.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SystemMonitor
impl RefUnwindSafe for SystemMonitor
impl Send for SystemMonitor
impl Sync for SystemMonitor
impl Unpin for SystemMonitor
impl UnsafeUnpin for SystemMonitor
impl UnwindSafe for SystemMonitor
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