pub enum Answer {
Closed,
Button(usize),
}Expand description
A user response to a dialog.
Variants§
Closed
The dialog window was closed by the OS.
This happens when the user clicks the close button in the window frame, presses Alt+F4 (if the desktop environment is configured that way), or when some other mechanism causes the window manager or compositor to close the window.
Button(usize)
One of the dialog buttons was pressed.
The 0-based button index is provided in the payload.
Trait Implementations§
impl Copy for Answer
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnwindSafe for Answer
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