pub enum Event {
Message(Message),
Input(Input),
Action(Action),
Actions(Actions),
WinsizeChanged {
rows: usize,
cols: usize,
},
}
Expand description
An input event that can be processed by the editor event loop
Variants§
Message(Message)
A [Message] received from the virtual filesystem interface
Input(Input)
An Input from the user
Action(Action)
An [Action] for the event loop to handle
Actions(Actions)
Multiple [Action]s to be handled in a batch
WinsizeChanged
A signal that our window size has changed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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