[][src]Struct i3status_rs::blocks::battery::Battery

pub struct Battery {
    id: usize,
    output: TextWidget,
    update_interval: Duration,
    device: Box<dyn BatteryDevice>,
    format: FormatTemplate,
    full_format: FormatTemplate,
    missing_format: FormatTemplate,
    allow_missing: bool,
    hide_missing: bool,
    driver: BatteryDriver,
    good: u64,
    info: u64,
    warning: u64,
    critical: u64,
}

A block for displaying information about an internal power supply.

Fields

id: usizeoutput: TextWidgetupdate_interval: Durationdevice: Box<dyn BatteryDevice>format: FormatTemplatefull_format: FormatTemplatemissing_format: FormatTemplateallow_missing: boolhide_missing: booldriver: BatteryDrivergood: u64info: u64warning: u64critical: u64

Trait Implementations

impl Block for Battery[src]

impl ConfigBlock for Battery[src]

type Config = BatteryConfig

Auto Trait Implementations

impl !RefUnwindSafe for Battery[src]

impl !Send for Battery[src]

impl !Sync for Battery[src]

impl Unpin for Battery[src]

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