pub enum Msg {
Key(KeyEvent),
Mouse(MouseEvent),
Resize {
cols: u16,
rows: u16,
},
Tick,
Exec(ExecEvent),
Quit,
}Expand description
Input to the pure update function.
Every state transition in the UI corresponds to exactly one Msg,
which makes the audit surface a single enum.
Variants§
Key(KeyEvent)
Key press from the terminal.
Mouse(MouseEvent)
Mouse event from the terminal (currently unused, reserved).
Resize
Terminal resize.
Tick
Timer tick for spinners and time-driven redraws.
Exec(ExecEvent)
Event from the runtime executor.
Quit
Explicit quit signal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more