Struct mg::InputDialog [−][src]
Input dialog responder. This is used to specify which message to send to which widget when the user answers the dialog.
Implementations
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]
F: Fn(Option<String>) -> WIDGET::Msg + 'static,
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]
fn respond(&self, answer: DialogResult)
[src]
Auto Trait Implementations
impl<WIDGET> !RefUnwindSafe for InputDialog<WIDGET>
[src]
impl<WIDGET> !Send for InputDialog<WIDGET>
[src]
impl<WIDGET> !Sync for InputDialog<WIDGET>
[src]
impl<WIDGET> Unpin for InputDialog<WIDGET>
[src]
impl<WIDGET> !UnwindSafe for InputDialog<WIDGET>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,