Enum openssh_mux_client::Response
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)