[][src]Struct mg::StatusBarItem

pub struct StatusBarItem { /* fields omitted */ }

Trait Implementations

impl Widget for StatusBarItem[src]

A status bar text item.

type Root = Label

The type of the root widget.

default fn init_view(&mut self)[src]

Update the view after it is initially created. This method is only useful when using the #[widget] attribute, because when not using it, you can use the view() method instead. Read more

default fn run(model_param: Self::ModelParam) -> Result<(), ()> where
    Self: 'static, 
[src]

Create the window from this widget and start the main loop.

impl WidgetTest for StatusBarItem[src]

type Widgets = __StatusBarItemWidgets

Represents the structure holding all the widgets. Useful for tests.

impl Update for StatusBarItem[src]

type Msg = ItemMsg

The type of the messages sent to the update() method.

type Model = ()

The type of the model.

type ModelParam = ()

The type of the parameter of the model() function used to initialize the model.

default fn subscriptions(&mut self, _relm: &Relm<Self>)

Connect the subscriptions. Subscriptions are Future/Stream that are spawn when the object is created. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.