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§fn clone(&self) -> PtySessionInfo
fn clone(&self) -> PtySessionInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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.Source§impl PartialEq for PtySessionInfo
impl PartialEq for PtySessionInfo
Source§fn eq(&self, other: &PtySessionInfo) -> bool
fn eq(&self, other: &PtySessionInfo) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PtySessionInfo
Auto Trait Implementations§
impl Freeze for PtySessionInfo
impl RefUnwindSafe for PtySessionInfo
impl Send for PtySessionInfo
impl Sync for PtySessionInfo
impl Unpin for PtySessionInfo
impl UnsafeUnpin for PtySessionInfo
impl UnwindSafe for PtySessionInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more