pub struct Pty {
pub id: String,
pub title: Option<String>,
pub command: Option<String>,
pub cwd: Option<String>,
pub env: Option<HashMap<String, String>>,
pub size: Option<PtySize>,
pub exited: bool,
pub exit_code: Option<i32>,
}Expand description
A PTY session.
Fields§
§id: StringPTY identifier.
title: Option<String>PTY title or command.
command: Option<String>Shell command.
cwd: Option<String>Working directory.
env: Option<HashMap<String, String>>Environment variables.
size: Option<PtySize>PTY size.
exited: boolWhether the PTY has exited.
exit_code: Option<i32>Exit code if exited.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pty
impl<'de> Deserialize<'de> for Pty
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 Pty
impl RefUnwindSafe for Pty
impl Send for Pty
impl Sync for Pty
impl Unpin for Pty
impl UnwindSafe for Pty
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