[][src]Trait cnx::widgets::Widget

pub trait Widget {
    fn stream(self: Box<Self>) -> Result<WidgetStream>;
}

The main trait implemented by all widgets.

This simple trait defines a widget. A widget is essentially just a futures::Stream<Item = Vec<Text>, ...> and this trait just defines a standard way to get at that stream.

Please note that this is currently considered unstable. This trait is very likely to change in the future.

Required methods

fn stream(self: Box<Self>) -> Result<WidgetStream>

Loading content...

Implementors

impl Widget for ActiveWindowTitle[src]

impl Widget for Battery[src]

impl Widget for Clock[src]

impl Widget for Pager[src]

impl Widget for Sensors[src]

impl Widget for Volume[src]

Loading content...