pub enum EventKind {
Quit,
Key,
Mouse,
User,
Resize,
Tick,
Paste,
Focus,
Blur,
Suspend,
Resume,
ExecProcess,
}Expand description
Type-erased event for priority detection
This allows us to work with events without knowing their message type, avoiding the need for unsafe transmutes.
Variants§
Quit
Quit event - terminates the program
Key
Keyboard input event
Mouse
Mouse input event
User
User-defined message event
Resize
Terminal resize event
Tick
Timer tick event
Paste
Text paste event
Focus
Terminal focus gained event
Blur
Terminal focus lost event
Suspend
Process suspension event
Resume
Process resumption event
ExecProcess
Process execution event
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnwindSafe for EventKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter