Enum russh::ChannelMsg
source · [−]#[non_exhaustive]
pub enum ChannelMsg {
Show 19 variants
Open {
id: ChannelId,
max_packet_size: u32,
window_size: u32,
},
Data {
data: CryptoVec,
},
ExtendedData {
data: CryptoVec,
ext: u32,
},
Eof,
RequestPty {
want_reply: bool,
term: String,
col_width: u32,
row_height: u32,
pix_width: u32,
pix_height: u32,
terminal_modes: Vec<(Pty, u32)>,
},
RequestShell {
want_reply: bool,
},
Exec {
want_reply: bool,
command: String,
},
Signal {
signal: Sig,
},
RequestSubsystem {
want_reply: bool,
name: String,
},
RequestX11 {
want_reply: bool,
single_connection: bool,
x11_authentication_protocol: String,
x11_authentication_cookie: String,
x11_screen_number: u32,
},
SetEnv {
want_reply: bool,
variable_name: String,
variable_value: String,
},
WindowChange {
col_width: u32,
row_height: u32,
pix_width: u32,
pix_height: u32,
},
XonXoff {
client_can_do: bool,
},
ExitStatus {
exit_status: u32,
},
ExitSignal {
signal_name: Sig,
core_dumped: bool,
error_message: String,
lang_tag: String,
},
WindowAdjusted {
new_size: u32,
},
Success,
Failure,
Close,
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open
Data
Fields
data: CryptoVec
ExtendedData
Eof
RequestPty
(client only)
RequestShell
Fields
want_reply: bool
(client only)
Exec
(client only)
Signal
Fields
signal: Sig
(client only)
RequestSubsystem
(client only)
RequestX11
Fields
want_reply: bool
single_connection: bool
x11_authentication_protocol: String
x11_screen_number: u32
(client only)
SetEnv
(client only)
WindowChange
(client only)
XonXoff
Fields
client_can_do: bool
(server only)
ExitStatus
Fields
exit_status: u32
(server only)
ExitSignal
(server only)
WindowAdjusted
Fields
new_size: u32
(server only)
Success
(server only)
Failure
(server only)
Close
(server only)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ChannelMsg
impl Send for ChannelMsg
impl Sync for ChannelMsg
impl Unpin for ChannelMsg
impl UnwindSafe for ChannelMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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