pub enum State {
Idle,
Asking(EndKind),
Saving(EndKind),
Done,
}Expand description
Where the app is in answering an end request.
Variants§
Idle
No request pending.
Asking(EndKind)
The “Save changes?” question is up.
Saving(EndKind)
The user chose Save; the save (maybe through a Save As dialog) runs.
Done
Cleaned up and allowed: the process is ending.
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Forget for State
impl Freeze for State
impl Move for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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