pub enum Request {
Start {
command: Vec<OsString>,
env: Vec<(OsString, OsString)>,
pwd: PathBuf,
rows: u16,
cols: u16,
},
ListProcesses,
Quit,
Resume {
id: Option<u32>,
with_output: bool,
},
WindowSize {
id: u32,
rows: u16,
cols: u16,
},
}Variants§
Start
Allocate a new terminal and start command.
ListProcesses
Quit
Resume
Restart the stopped foreground process in the given terminal.
Has no effect if the process is not stopped. If id is None, resumes
the last stopped terminal.
Fields
WindowSize
Window size has changed. Should be sent by the client in response to the SIGWINCH signal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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