pub struct Info {
pub sys: System,
}Fields§
§sys: SystemImplementations§
Source§impl Info
impl Info
pub fn new() -> Self
Sourcepub fn total_memory(&self) -> u64
pub fn total_memory(&self) -> u64
total installed memory space(MB)
Sourcepub fn used_memory(&self) -> u64
pub fn used_memory(&self) -> u64
used installed memory space (MB)
Sourcepub fn used_memory_percent(&self) -> f64
pub fn used_memory_percent(&self) -> f64
used installed memory space (percentage)
Sourcepub fn free_memory(&self) -> u64
pub fn free_memory(&self) -> u64
free installed memory space (MB)
Sourcepub fn free_memory_percent(&self) -> f64
pub fn free_memory_percent(&self) -> f64
free installed memory space (percentage)
Sourcepub fn available_memory(&self) -> u64
pub fn available_memory(&self) -> u64
available installed memory space (MB)
Sourcepub fn available_memory_percent(&self) -> f64
pub fn available_memory_percent(&self) -> f64
available installed memory space (percentage)
Sourcepub fn total_swap(&self) -> u64
pub fn total_swap(&self) -> u64
total swap space (MB)
Sourcepub fn free_swap_percent(&self) -> f64
pub fn free_swap_percent(&self) -> f64
Free swap space (percentage)
Sourcepub fn used_swap_percent(&self) -> f64
pub fn used_swap_percent(&self) -> f64
Used a swap space (percentage)
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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