pub enum DialogResult {
Dismissed,
Ok,
Cancel,
Custom(String),
Input(String),
}Expand description
Result from a dialog interaction.
Variants§
Dismissed
Dialog was dismissed without action.
Ok
OK / primary button pressed.
Cancel
Cancel / secondary button pressed.
Custom(String)
Custom button pressed with its ID.
Input(String)
Prompt dialog submitted with input value.
Trait Implementations§
Source§impl Clone for DialogResult
impl Clone for DialogResult
Source§impl Debug for DialogResult
impl Debug for DialogResult
impl Eq for DialogResult
Source§impl PartialEq for DialogResult
impl PartialEq for DialogResult
impl StructuralPartialEq for DialogResult
Auto Trait Implementations§
impl Freeze for DialogResult
impl RefUnwindSafe for DialogResult
impl Send for DialogResult
impl Sync for DialogResult
impl Unpin for DialogResult
impl UnsafeUnpin for DialogResult
impl UnwindSafe for DialogResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more