pub enum RawEvent {
PasteUploadFinished {
id: u64,
result: Result<String, String>,
},
Key(KeyEvent),
Resize(u16, u16),
FocusChanged {
focused: bool,
},
Paste(String),
CompletionRefresh,
CompletionRefreshIfGeneration(u64),
}Expand description
Raw terminal events from crossterm or a virtual test input channel.
Variants§
PasteUploadFinished
Directed local upload completion; contains reference or diagnostic only.
Fields
Key(KeyEvent)
A decoded key press from crossterm.
Resize(u16, u16)
Terminal resize event with width and height in cells.
FocusChanged
Terminal focus changed.
Paste(String)
One bracketed paste. The whole pasted string is delivered atomically so a multi-line paste doesn’t trigger Enter on embedded newlines.
CompletionRefresh
Re-evaluate the completion source without treating it as user input.
CompletionRefreshIfGeneration(u64)
Re-evaluate completion only if the captured interaction is still current.
Auto Trait Implementations§
impl Freeze for RawEvent
impl RefUnwindSafe for RawEvent
impl Send for RawEvent
impl Sync for RawEvent
impl Unpin for RawEvent
impl UnsafeUnpin for RawEvent
impl UnwindSafe for RawEvent
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