pub enum AppEvent {
Show 18 variants
Terminal(Key),
Resize {
columns: u16,
rows: u16,
},
Paste(String),
QuitIntent,
Lsp(LspEvent),
LspAttach(AttachRecord),
Shell(ShellResult),
Io(IoEvent),
RemoteCompletion(Completion<RemoteCompletionKey, RemoteCompletionResult>),
Container(Completion<ContainerKey, ContainerResult>),
Git(GitJob),
Picker(PickerEvent),
PickerRanking(Event),
Analysis(AnalysisEvent),
Resolution(ResolutionEvent),
ResumeInput,
Preview(PreviewResult),
Clipboard(ClipboardResult),
}Expand description
One app event. Terminal input is already translated to editor keys by the reader thread.
Variants§
Terminal(Key)
Resize
Terminal resized — a redraw is owed even with no input (0020 §12).
Paste(String)
Bracketed paste: one text payload, never a key stream.
QuitIntent
ctrl-c: the quit intent (0015’s policy lives in the editor).
Lsp(LspEvent)
LspAttach(AttachRecord)
Shell(ShellResult)
Io(IoEvent)
RemoteCompletion(Completion<RemoteCompletionKey, RemoteCompletionResult>)
Container(Completion<ContainerKey, ContainerResult>)
Git(GitJob)
Picker(PickerEvent)
PickerRanking(Event)
Analysis(AnalysisEvent)
Resolution(ResolutionEvent)
ResumeInput
Preview(PreviewResult)
Clipboard(ClipboardResult)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppEvent
impl<'de> Deserialize<'de> for AppEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AppEvent
impl !Sync for AppEvent
impl !UnwindSafe for AppEvent
impl Freeze for AppEvent
impl Send for AppEvent
impl Unpin for AppEvent
impl UnsafeUnpin for AppEvent
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