[−][src]Struct i3status_rs::blocks::battery::Battery
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: u64Trait Implementations
impl Block for Battery[src]
fn update(&mut self) -> Result<Option<Update>, Error>[src]
fn view(&self) -> Vec<&dyn I3BarWidget>[src]
fn id(&self) -> usize[src]
fn signal(&mut self, _signal: i32) -> Result<(), Error>[src]
fn click(&mut self, _event: &I3BarEvent) -> Result<(), Error>[src]
impl ConfigBlock for Battery[src]
type Config = BatteryConfig
fn new(
id: usize,
block_config: Self::Config,
shared_config: SharedConfig,
update_request: Sender<Task>
) -> Result<Self, Error>[src]
id: usize,
block_config: Self::Config,
shared_config: SharedConfig,
update_request: Sender<Task>
) -> Result<Self, Error>
fn override_on_click(&mut self) -> Option<&mut Option<String>>[src]
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]
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> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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>,