pub enum OverlayOutcome {
Stay,
Close,
CloseAnd(Command),
Apply(Command),
Refuse(&'static str),
}Variants§
Stay
Keep the overlay open, just redraw.
Close
Close the overlay; no follow-up command.
CloseAnd(Command)
Close the overlay, then dispatch one command through the normal app loop.
Apply(Command)
Stay open; dispatch one command, then call refresh on the overlay
so it can re-derive its visible set from the new app state.
Refuse(&'static str)
Stay open; flash a short message in the status row for ~1.5 seconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OverlayOutcome
impl RefUnwindSafe for OverlayOutcome
impl Send for OverlayOutcome
impl Sync for OverlayOutcome
impl Unpin for OverlayOutcome
impl UnsafeUnpin for OverlayOutcome
impl UnwindSafe for OverlayOutcome
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