pub enum Selection {
OK,
Cancel,
Yes,
No,
Quit,
None,
Error,
}Expand description
The button that was selected by the user
Variants§
OK
The user selected OK from an Buttons::OK or Buttons::OKCancel
Cancel
The user selected Cancel from an Buttons::OKCancel
Yes
The user selected “Yes” from a Buttons::YesNo
No
The user selected “No” from a Buttons::YesNo
Quit
The user selected “Quit” from a Buttons::Quit
None
The user did not select a button
Error
An internal error occurred.
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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