pub enum Event {
StateChanged {
id: u32,
state: ProcessState,
},
WindowSize {
cols: u16,
rows: u16,
},
Error(Error),
Process(Process),
}Variants§
StateChanged
Process in the given terminal changed state, i.e. exist, stopped,
started, or killed. When this is sent in response to a Start
request, id is a newly allocated identifier.
WindowSize
Sent on Resume, report the current terminal size
Error(Error)
Process(Process)
Responses for the ListProcesses request
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 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