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

pub struct Memory {
    id: usize,
    memtype: Memtype,
    output: (TextWidget, TextWidget),
    clickable: bool,
    format: (FormatTemplate, FormatTemplate),
    update_interval: Duration,
    tx_update_request: Sender<Task>,
    warning: (f64, f64),
    critical: (f64, f64),
}

Fields

id: usizememtype: Memtypeoutput: (TextWidget, TextWidget)clickable: boolformat: (FormatTemplate, FormatTemplate)update_interval: Durationtx_update_request: Sender<Task>warning: (f64, f64)critical: (f64, f64)

Implementations

impl Memory[src]

fn format_insert_values(&mut self, mem_state: Memstate) -> Result<String, Error>[src]

pub fn switch(&mut self)[src]

Trait Implementations

impl Block for Memory[src]

impl Clone for Memory[src]

impl ConfigBlock for Memory[src]

type Config = MemoryConfig

impl Debug for Memory[src]

Auto Trait Implementations

impl !RefUnwindSafe for Memory[src]

impl !Send for Memory[src]

impl !Sync for Memory[src]

impl Unpin for Memory[src]

impl UnwindSafe for Memory[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> 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.