[−][src]Trait i3monkit::Widget
The trait for an widget.
A widget maintains a dynamic block on the i3bar
Required methods
fn update(&mut self) -> Option<WidgetUpdate>
The function used to update the widget.
Note: even with no update, the widget should return an non-empty update with empty data payload. If None is returned, the framework will disable this widget and do not call the update function anymore.
Implementors
impl Widget for BatteryWidget
[src]
impl Widget for BatteryWidget
fn update(&mut self) -> Option<WidgetUpdate> | [src] |
impl Widget for CpuWidget
[src]
impl Widget for CpuWidget
fn update(&mut self) -> Option<WidgetUpdate> | [src] |
impl Widget for DateTimeWidget
[src]
impl Widget for DateTimeWidget
fn update(&mut self) -> Option<WidgetUpdate> | [src] |
impl Widget for NetworkSpeedWidget
[src]
impl Widget for NetworkSpeedWidget
fn update(&mut self) -> Option<WidgetUpdate> | [src] |
impl Widget for VolumeWidget
[src]
impl Widget for VolumeWidget
fn update(&mut self) -> Option<WidgetUpdate> | [src] |
impl<'a> Widget for StockWidget<'a>
[src]
impl<'a> Widget for StockWidget<'a>
fn update(&mut self) -> Option<WidgetUpdate> | [src] |