[][src]Struct mg::InputDialog

pub struct InputDialog<WIDGET: Widget> { /* fields omitted */ }

Input dialog responder. This is used to specify which message to send to which widget when the user answers the dialog.

Methods

impl<WIDGET: Widget> InputDialog<WIDGET>[src]

pub fn new<F>(relm: &Relm<WIDGET>, callback: F) -> Self where
    F: Fn(Option<String>) -> WIDGET::Msg + 'static, 
[src]

Create a new input dialog responder. The callback is a message constructor. The message will be sent to relm stream.

Trait Implementations

impl<WIDGET: Widget> Responder for InputDialog<WIDGET>[src]

Auto Trait Implementations

impl<WIDGET> !Send for InputDialog<WIDGET>

impl<WIDGET> !Sync for InputDialog<WIDGET>

impl<WIDGET> Unpin for InputDialog<WIDGET>

impl<WIDGET> !UnwindSafe for InputDialog<WIDGET>

impl<WIDGET> !RefUnwindSafe for InputDialog<WIDGET>

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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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