pub enum Response {
Hello {
version: u32,
},
Alive {
response_id: u32,
server_pid: u32,
},
Ok {
response_id: u32,
},
Failure {
response_id: u32,
reason: Box<str>,
},
PermissionDenied {
response_id: u32,
reason: Box<str>,
},
SessionOpened {
response_id: u32,
session_id: u32,
},
ExitMessage {
session_id: u32,
exit_value: u32,
},
TtyAllocFail {
session_id: u32,
},
RemotePort {
response_id: u32,
remote_port: u32,
},
}
Expand description
WARNING: Response can only be used with ssh_mux_format, which treats tuple and struct as the same.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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