pub enum PtyExitStatus {
Code(u32),
Signal {
signal_name: Sig,
core_dumped: bool,
error_message: String,
},
ChannelClosed,
}Expand description
Represents the exit status of a PTY session.
Captures exit codes, signal termination, or unexpected channel closure.
Variants§
Code(u32)
The remote process exited with a numeric exit code.
Signal
The remote process was terminated by a signal.
Fields
ChannelClosed
The SSH channel was closed without an explicit exit status.
Implementations§
Trait Implementations§
Source§impl Clone for PtyExitStatus
impl Clone for PtyExitStatus
Source§fn clone(&self) -> PtyExitStatus
fn clone(&self) -> PtyExitStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PtyExitStatus
impl RefUnwindSafe for PtyExitStatus
impl Send for PtyExitStatus
impl Sync for PtyExitStatus
impl Unpin for PtyExitStatus
impl UnwindSafe for PtyExitStatus
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