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

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

The main trait implemented by all widgets.

This simple trait defines a widget. A widget is essentially just a [futures::stream::Stream] and this trait is the standard way of accessing that stream.

See the WidgetStream type alias for the exact type of stream that should be returned.

Required methods

Implementors