pub struct SwapStats {
pub total_swap: u64,
pub used_swap: u64,
pub available_swap: u64,
pub swap_in_rate: f64,
pub swap_out_rate: f64,
}Expand description
Swap/page file statistics
Fields§
§total_swap: u64Total swap/page file size
used_swap: u64Used swap/page file
available_swap: u64Available swap/page file
swap_in_rate: f64Swap-in rate (pages per second)
swap_out_rate: f64Swap-out rate (pages per second)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwapStats
impl RefUnwindSafe for SwapStats
impl Send for SwapStats
impl Sync for SwapStats
impl Unpin for SwapStats
impl UnwindSafe for SwapStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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