[][src]Struct i3status_rs::blocks::disk_space::DiskSpaceConfig

pub struct DiskSpaceConfig {
    pub path: String,
    pub info_type: InfoType,
    pub format: String,
    pub unit: String,
    pub interval: Duration,
    pub warning: f64,
    pub alert: f64,
    pub alert_absolute: bool,
    pub alias: String,
}

Fields

path: String

Path to collect information from

info_type: InfoType

Currently supported options are available, free, total and used Sets value used for {percentage} calculation total is the same as used, use format to set format string for output

format: String

Format string for output

unit: String

Unit that is used to display disk space. Options are B, KB, MB, GB and TB

interval: Duration

Update interval in seconds

warning: f64

Diskspace warning (yellow)

alert: f64

Diskspace alert (red)

alert_absolute: bool

use absolute (unit) values for disk space alerts

alias: String

Alias that is displayed for path

Trait Implementations

impl Clone for DiskSpaceConfig[src]

impl Debug for DiskSpaceConfig[src]

impl Default for DiskSpaceConfig[src]

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

Auto Trait Implementations

impl RefUnwindSafe for DiskSpaceConfig[src]

impl Send for DiskSpaceConfig[src]

impl Sync for DiskSpaceConfig[src]

impl Unpin for DiskSpaceConfig[src]

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