pub enum Event {
Action(Action),
Actions(Actions),
BracketedPaste(String),
Input(Input),
Message(Message),
StatusMessage(String),
WinsizeChanged {
rows: usize,
cols: usize,
},
}Expand description
An input event that can be processed by the editor event loop
Variants§
Action(Action)
An Action for the event loop to handle
Actions(Actions)
Multiple Actions to be handled in a batch
BracketedPaste(String)
Raw that need to be handled as an insert without applying auto-indent
Input(Input)
An Input from the user
Message(Message)
A Message received from the virtual filesystem interface
StatusMessage(String)
A status message to display in the editor UI
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more