pub enum SessionStatus {
TtyAllocFail(EstablishedSession),
Exited {
exit_value: Option<u32>,
},
}
Variants§
TtyAllocFail(EstablishedSession)
Remote ssh server failed to allocate a tty, you can now return the tty to cooked mode.
This arm includes EstablishedSession
so that you can call wait
on it
again and retrieve the exit status and the underlying connection.
Exited
The process on the remote machine has exited with exit_value
.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SessionStatus
impl RefUnwindSafe for SessionStatus
impl Send for SessionStatus
impl Sync for SessionStatus
impl Unpin for SessionStatus
impl UnwindSafe for SessionStatus
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