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§fn clone(&self) -> DialogResult
fn clone(&self) -> DialogResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DialogResult
impl Debug for DialogResult
Source§impl PartialEq for DialogResult
impl PartialEq for DialogResult
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.