[−][src]Struct mg::StatusBarItem
Trait Implementations
impl Widget for StatusBarItem
[src]
A status bar text item.
fn on_add<W: IsA<Widget> + IsA<Object>>(&self, parent: W)
[src]
fn view(relm: &Relm<Self>, __relm_model: Self::Model) -> Self
[src]
type Root = Label
The type of the root widget.
fn parent_id() -> Option<&'static str>
[src]
fn root(&self) -> Self::Root
[src]
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]
Self: 'static,
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.
fn get_widgets(&self) -> __StatusBarItemWidgets
[src]
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.
fn update(&mut self, msg: ItemMsg)
[src]
fn model(_: &Relm<Self>, _: ())
[src]
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
impl !Send for StatusBarItem
impl !Sync for StatusBarItem
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,