#[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

Fields

max_packet_size: u32
window_size: u32

Data

Fields

data: CryptoVec

ExtendedData

Fields

data: CryptoVec
ext: u32

Eof

RequestPty

Fields

want_reply: bool
term: String
col_width: u32
row_height: u32
pix_width: u32
pix_height: u32
terminal_modes: Vec<(Pty, u32)>

(client only)

RequestShell

Fields

want_reply: bool

(client only)

Exec

Fields

want_reply: bool
command: String

(client only)

Signal

Fields

signal: Sig

(client only)

RequestSubsystem

Fields

want_reply: bool
name: String

(client only)

RequestX11

Fields

want_reply: bool
single_connection: bool
x11_authentication_protocol: String
x11_authentication_cookie: String
x11_screen_number: u32

(client only)

SetEnv

Fields

want_reply: bool
variable_name: String
variable_value: String

(client only)

WindowChange

Fields

col_width: u32
row_height: u32
pix_width: u32
pix_height: u32

(client only)

XonXoff

Fields

client_can_do: bool

(server only)

ExitStatus

Fields

exit_status: u32

(server only)

ExitSignal

Fields

signal_name: Sig
core_dumped: bool
error_message: String
lang_tag: String

(server only)

WindowAdjusted

Fields

new_size: u32

(server only)

Success

(server only)

Failure

(server only)

Close

(server only)

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.