[−][src]Struct i3status_rs::blocks::battery::BatteryConfig
Configuration for the Battery block.
Fields
interval: DurationUpdate interval in seconds
device: StringThe internal power supply device in /sys/class/power_supply/ to read from.
format: StringFormat string for displaying battery information. placeholders: {percentage}, {bar}, {time} and {power}
full_format: StringFormat string for displaying battery information when battery is full. placeholders: {percentage}, {bar}, {time} and {power}
missing_format: StringFormat string that's displayed if a battery is missing. placeholders: {percentage}, {bar}, {time} and {power}
driver: BatteryDriverThe "driver" to use for powering the block. One of "sysfs" or "upower".
good: u64The threshold above which the remaining capacity is shown as good
info: u64The threshold below which the remaining capacity is shown as info
warning: u64The threshold below which the remaining capacity is shown as warning
critical: u64The threshold below which the remaining capacity is shown as critical
allow_missing: boolIf the battery device cannot be found, do not fail and show the block anyway (sysfs only).
hide_missing: boolIf the battery device cannot be found, completely hide this block.
Trait Implementations
impl Clone for BatteryConfig[src]
fn clone(&self) -> BatteryConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for BatteryConfig[src]
impl Default for BatteryConfig[src]
impl<'de> Deserialize<'de> for BatteryConfig where
BatteryConfig: Default, [src]
BatteryConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for BatteryConfig[src]
impl Send for BatteryConfig[src]
impl Sync for BatteryConfig[src]
impl Unpin for BatteryConfig[src]
impl UnwindSafe for BatteryConfig[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,