[][src]Struct ommui_relm_widgets::menu_page::W

pub struct W { /* fields omitted */ }

The widget.

Trait Implementations

impl Widget for W[src]

type Root = Box

The type of the root widget.

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

fn on_add<W>(&self, _parent: W) where
    W: IsA<Widget> + IsA<Object>, 
[src]

Method called when the widget is added to its parent.

fn parent_id() -> Option<&'static str>[src]

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

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

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

impl Update for W[src]

type Model = Param

The type of the model.

type ModelParam = Param

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

type Msg = Msg

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

fn subscriptions(&mut self, _relm: &Relm<Self>)[src]

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

Auto Trait Implementations

impl !Sync for W

impl !Send for W

impl Unpin for W

impl RefUnwindSafe for W

impl UnwindSafe for W

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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