pub enum Event {
Requested {
kind: EndKind,
dirty: bool,
can_wait: bool,
},
Save,
Discard,
Cancel,
Saved,
SaveFailed,
}Expand description
What happened.
Variants§
Requested
The OS asks to end. dirty: the document has unsaved changes. can_wait: the OS waits
for a dialog (CAN_WAIT).
Save
Answers to the question.
Discard
Cancel
Saved
The save finished, or failed / its Save As dialog was cancelled.
SaveFailed
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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