[][src]Struct psutil::system::SwapMemory

pub struct SwapMemory {
    pub total: u64,
    pub used: u64,
    pub free: u64,
    pub percent: f32,
    pub sin: u64,
    pub sout: u64,
}

Fields

total: u64

Amount of total swap memory

used: u64

Amount of used swap memory

free: u64

Amount of free swap memory

percent: f32

Percent of sway memory used

sin: u64

Amount of memory swapped in from disk

sout: u64

Amount of memory swapped to disk

Methods

impl SwapMemory[src]

pub fn new(total: u64, free: u64, sin: u64, sout: u64) -> SwapMemory[src]

Trait Implementations

impl Debug for SwapMemory[src]

Auto Trait Implementations

impl Send for SwapMemory

impl Sync for SwapMemory

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]