pub struct PtySessionInfo {Show 16 fields
pub session_id: String,
pub pid: u32,
pub command: String,
pub cwd: String,
pub originator: String,
pub created_at: f64,
pub attached: bool,
pub exited: bool,
pub exit_code: i32,
pub exited_at: f64,
pub rows: u32,
pub cols: u32,
pub termination_outcome: i32,
pub attached_is_tty: bool,
pub attached_term: String,
pub attached_graphics_capabilities: Option<TerminalGraphicsCapabilities>,
}Fields§
§session_id: String§pid: u32§command: String§cwd: String§originator: String§created_at: f64§attached: bool§exited: boolPopulated only after the child has exited.
exit_code: i32§exited_at: f64§rows: u32§cols: u32§termination_outcome: i32Which termination path the session took. UNSPECIFIED while the session is live or for pre-#130 callers.
attached_is_tty: boolWhether the current attached client identified itself as a TTY.
Meaningful only when attached=true; set to the value of
AttachPtySessionRequest.is_tty at attach time. The daemon uses
this to skip resize/cursor-query side effects for non-TTY
clients (e.g. stream-JSON renderers). #130 M6 C9.
attached_term: StringTERM string supplied by the attached client at attach time. Informational; the daemon does not propagate this to the running child’s environment (you cannot change a live child’s TERM). Empty when no client is attached.
attached_graphics_capabilities: Option<TerminalGraphicsCapabilities>Graphics capability metadata supplied by the currently attached client. Missing metadata from older clients is treated as unknown.
Implementations§
Source§impl PtySessionInfo
impl PtySessionInfo
Sourcepub fn termination_outcome(&self) -> TerminationOutcome
pub fn termination_outcome(&self) -> TerminationOutcome
Returns the enum value of termination_outcome, or the default if the field is set to an invalid enum value.
Sourcepub fn set_termination_outcome(&mut self, value: TerminationOutcome)
pub fn set_termination_outcome(&mut self, value: TerminationOutcome)
Sets termination_outcome to the provided enum value.
Trait Implementations§
Source§impl Clone for PtySessionInfo
impl Clone for PtySessionInfo
Source§impl Debug for PtySessionInfo
impl Debug for PtySessionInfo
Source§impl Default for PtySessionInfo
impl Default for PtySessionInfo
Source§impl Message for PtySessionInfo
impl Message for PtySessionInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.