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
Hello
Fields
version: u32
Alive
Ok
Fields
response_id: u32
Failure
PermissionDenied
SessionOpened
ExitMessage
TtyAllocFail
Fields
session_id: u32
RemotePort
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
sourcefn 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 RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more