Skip to main content

PtySessionInfo

Struct PtySessionInfo 

Source
pub struct PtySessionInfo {
Show 15 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,
}

Fields§

§session_id: String§pid: u32§command: String§cwd: String§originator: String§created_at: f64§attached: bool§exited: bool

Populated only after the child has exited.

§exit_code: i32§exited_at: f64§rows: u32§cols: u32§termination_outcome: i32

Which termination path the session took. UNSPECIFIED while the session is live or for pre-#130 callers.

§attached_is_tty: bool

Whether 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: String

TERM 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.

Implementations§

Source§

impl PtySessionInfo

Source

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.

Source

pub fn set_termination_outcome(&mut self, value: TerminationOutcome)

Sets termination_outcome to the provided enum value.

Trait Implementations§

Source§

impl Clone for PtySessionInfo

Source§

fn clone(&self) -> PtySessionInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PtySessionInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PtySessionInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Message for PtySessionInfo

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for PtySessionInfo

Source§

fn eq(&self, other: &PtySessionInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for PtySessionInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.