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 Component
s 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
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.
Auto Trait Implementations
impl<WIDGET> RefUnwindSafe for Component<WIDGET> where
<WIDGET as Update>::Msg: RefUnwindSafe,
<WIDGET as Widget>::Root: RefUnwindSafe,
impl<WIDGET> UnwindSafe for Component<WIDGET> where
<WIDGET as Update>::Msg: RefUnwindSafe,
<WIDGET as Widget>::Root: UnwindSafe,