[][src]Struct i3status_rs::blocks::cpu::CpuConfig

pub struct CpuConfig {
    pub interval: Duration,
    pub info: u64,
    pub warning: u64,
    pub critical: u64,
    pub format: String,
}

Fields

interval: Duration

Update interval in seconds

info: u64

Minimum usage, where state is set to info

warning: u64

Minimum usage, where state is set to warning

critical: u64

Minimum usage, where state is set to critical

format: String

Format override

Trait Implementations

impl Clone for CpuConfig[src]

impl Debug for CpuConfig[src]

impl Default for CpuConfig[src]

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

Auto Trait Implementations

impl RefUnwindSafe for CpuConfig[src]

impl Send for CpuConfig[src]

impl Sync for CpuConfig[src]

impl Unpin for CpuConfig[src]

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