pub struct Component { /* private fields */ }

Trait Implementations

The type of the model.
The type of the parameter of the model() function used to initialize the model.
The type of the messages sent to the update() method.
Create the initial model.
Method called when a message is received from an event.
Connect the subscriptions. Subscriptions are Future/Stream that are spawn when the object is created. Read more
The type of the root widget.
Get the root widget of the view.
Create the initial view.
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
Method called when the widget is added to its parent. This is currently only used to set the child properties of a widget as relm widget could have child properties and we don’t know its parent when it is defined. Thus, we call on_add() when it is added to its parent to set the child properties. Read more
Get the parent ID. This is useful for custom Container implementation: when you implement the Container::add_widget(), you might want to insert widgets elsewhere depending of this id. Read more
Create the window from this widget and start the main loop.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.