pub enum Flow<T> {
Continue,
Done(T),
Cancel,
Ignored,
Handoff(Command),
}Expand description
What a component wants after handling an event.
Variants§
Continue
Keep going. The view is rendered again, and repainted only if it changed.
Done(T)
Finished with a value.
Cancel
The user backed out (Escape, q): no value.
Ignored
The event was not for this component: it is left to the container
the component is in, which may use it itself (a focus key, a
binding of its own) or pass it on to its own container (0.0.14).
The event loop, at the top, treats it as Continue.
Handoff(Command)
Give the terminal to command ($EDITOR file, a pager) until it
exits, then take it back and repaint; the component then gets
Event::Returned with the exit code (#489).
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Flow<T>
impl<T> !UnwindSafe for Flow<T>
impl<T> Freeze for Flow<T>where
T: Freeze,
impl<T> Send for Flow<T>where
T: Send,
impl<T> Sync for Flow<T>where
T: Sync,
impl<T> Unpin for Flow<T>where
T: Unpin,
impl<T> UnsafeUnpin for Flow<T>where
T: UnsafeUnpin,
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