pub enum PtyOutput {
Data(Vec<u8>),
Idle,
Exit(Option<i32>),
Failed(String),
Note(Value),
}Expand description
One terminal session’s output, polled.
Variants§
Data(Vec<u8>)
Idle
Nothing within the wait.
Exit(Option<i32>)
The program ended (with its exit code, when known).
Failed(String)
It could not run, or the exec broke: shown to the person, then closed.
Note(Value)
A control message for the other end, sent as a text frame (an agent’s SSH session telling its control plane which key sshd accepted). Never content.
Trait Implementations§
impl Eq for PtyOutput
impl StructuralPartialEq for PtyOutput
Auto Trait Implementations§
impl Freeze for PtyOutput
impl RefUnwindSafe for PtyOutput
impl Send for PtyOutput
impl Sync for PtyOutput
impl Unpin for PtyOutput
impl UnsafeUnpin for PtyOutput
impl UnwindSafe for PtyOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.