pub struct Swap(/* private fields */);
Expand description
Swap memory statistics.
Only three metrics are guaranteed to be cross-platform, for other metrics see OS-specific extensions.
Implementations§
Source§impl Swap
impl Swap
Sourcepub fn total(&self) -> Information
pub fn total(&self) -> Information
The total amount of swap memory
Sourcepub fn used(&self) -> Information
pub fn used(&self) -> Information
The used amount of swap memory
Sourcepub fn free(&self) -> Information
pub fn free(&self) -> Information
The free amount of swap memory
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Swap
impl !RefUnwindSafe for Swap
impl Send for Swap
impl Sync for Swap
impl Unpin for Swap
impl !UnwindSafe for Swap
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