pub enum CloseDecision {
Save,
Discard,
Cancel,
}Expand description
A typed decision on a pending close confirmation.
Variants§
Save
Run the window’s declared save command, then close if it succeeds.
Discard
Close without saving; the window’s drafts are released.
Cancel
Keep the window open.
Implementations§
Source§impl CloseDecision
impl CloseDecision
Trait Implementations§
Source§impl Clone for CloseDecision
impl Clone for CloseDecision
impl Copy for CloseDecision
Source§impl Debug for CloseDecision
impl Debug for CloseDecision
impl Eq for CloseDecision
Source§impl PartialEq for CloseDecision
impl PartialEq for CloseDecision
impl StructuralPartialEq for CloseDecision
Auto Trait Implementations§
impl Freeze for CloseDecision
impl RefUnwindSafe for CloseDecision
impl Send for CloseDecision
impl Sync for CloseDecision
impl Unpin for CloseDecision
impl UnsafeUnpin for CloseDecision
impl UnwindSafe for CloseDecision
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