[][src]Struct i3status_rs::blocks::memory::MemoryConfig

pub struct MemoryConfig {
    pub format_mem: String,
    pub format_swap: String,
    pub display_type: Memtype,
    pub icons: bool,
    pub clickable: bool,
    pub interval: Duration,
    pub warning_mem: f64,
    pub warning_swap: f64,
    pub critical_mem: f64,
    pub critical_swap: f64,
}

Fields

format_mem: String

Format string for Memory view. All format values are described below.

format_swap: String

Format string for Swap view.

display_type: Memtype

Default view displayed on startup. Options are
memory, swap

icons: bool

Whether the format string should be prepended with Icons. Options are
true, false

clickable: bool

Whether the view should switch between memory and swap on click. Options are
true, false

interval: Duration

The delay in seconds between an update. If clickable, an update is triggered on click. Integer values only.

warning_mem: f64

Percentage of memory usage, where state is set to warning

warning_swap: f64

Percentage of swap usage, where state is set to warning

critical_mem: f64

Percentage of memory usage, where state is set to critical

critical_swap: f64

Percentage of swap usage, where state is set to critical

Trait Implementations

impl Clone for MemoryConfig[src]

impl Debug for MemoryConfig[src]

impl Default for MemoryConfig[src]

impl<'de> Deserialize<'de> for MemoryConfig where
    MemoryConfig: Default
[src]

Auto Trait Implementations

impl RefUnwindSafe for MemoryConfig[src]

impl Send for MemoryConfig[src]

impl Sync for MemoryConfig[src]

impl Unpin for MemoryConfig[src]

impl UnwindSafe for MemoryConfig[src]

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.