pub struct SystemMonitor { /* private fields */ }Implementations§
Source§impl SystemMonitor
impl SystemMonitor
pub fn new() -> Result<Self>
pub fn get_system_info(&self) -> &SystemInfo
pub fn get_current_stats(&mut self) -> Result<SystemStats>
pub fn format_bytes(bytes: u64) -> String
pub fn format_uptime(duration: Duration) -> String
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more