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

pub struct DiskSpace {
    id: usize,
    disk_space: TextWidget,
    update_interval: Duration,
    path: String,
    unit: Prefix,
    info_type: InfoType,
    warning: f64,
    alert: f64,
    alert_absolute: bool,
    format: FormatTemplate,
    icon: String,
    alias: String,
}

Fields

id: usizedisk_space: TextWidgetupdate_interval: Durationpath: Stringunit: Prefixinfo_type: InfoTypewarning: f64alert: f64alert_absolute: boolformat: FormatTemplateicon: Stringalias: String

Implementations

impl DiskSpace[src]

fn compute_state(
    &self,
    value: f64,
    warning: f64,
    alert: f64,
    alert_type: AlertType
) -> State
[src]

Trait Implementations

impl Block for DiskSpace[src]

impl ConfigBlock for DiskSpace[src]

type Config = DiskSpaceConfig

Auto Trait Implementations

impl !RefUnwindSafe for DiskSpace[src]

impl !Send for DiskSpace[src]

impl !Sync for DiskSpace[src]

impl Unpin for DiskSpace[src]

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