Struct relm::Component[][src]

pub struct Component<WIDGET: Widget> { /* fields omitted */ }
Expand description

Widget that was added by the ContainerWidget::add_widget() method.

Warning

You must keep your components as long as you want them to send/receive events. Common practice is to store Components in the Widget struct (see the communication example). The #[widget] attribute takes care of storing them in the struct automatically (see the communication-attribute example).

Implementations

Emit a message of the widget stream.

Get the event stream of the component. This is used internally by the library.

Get the event stream of the component. This is used internally by the library.

Get the widget of the component.

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

Performs the conversion.

Performs the conversion.

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.