Enum russh::ChannelMsg
source · #[non_exhaustive]pub enum ChannelMsg {
Show 21 variants
Open {
id: ChannelId,
max_packet_size: u32,
window_size: u32,
},
Data {
data: CryptoVec,
},
ExtendedData {
data: CryptoVec,
ext: u32,
},
Eof,
Close,
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: Vec<u8>,
},
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,
},
AgentForward {
want_reply: bool,
},
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,
OpenFailure(ChannelOpenFailure),
}
Expand description
Possible messages that Channel::wait can receive.
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
ExtendedData
Eof
Close
RequestPty
Fields
(client only)
RequestShell
(client only)
Exec
(client only)
Signal
(client only)
RequestSubsystem
(client only)
RequestX11
Fields
(client only)
SetEnv
(client only)
WindowChange
(client only)
AgentForward
(client only)
XonXoff
(server only)
ExitStatus
(server only)
ExitSignal
(server only)
WindowAdjusted
(server only)
Success
(server only)
Failure
(server only)
OpenFailure(ChannelOpenFailure)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChannelMsg
impl RefUnwindSafe for ChannelMsg
impl Send for ChannelMsg
impl Sync for ChannelMsg
impl Unpin for ChannelMsg
impl UnwindSafe for ChannelMsg
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