Enum ssh_packet::connect::ChannelRequestContext
source · pub enum ChannelRequestContext {
Pty {
term: Bytes,
width_chars: u32,
height_chars: u32,
width_pixels: u32,
height_pixels: u32,
modes: Bytes,
},
X11 {
single_connection: Bool,
x11_authentication_protocol: Bytes,
x11_authentication_cookie: Bytes,
x11_screen_number: u32,
},
Env {
name: Bytes,
value: Bytes,
},
Shell,
Exec {
command: Bytes,
},
Subsystem {
name: Bytes,
},
WindowChange {
width_chars: u32,
height_chars: u32,
width_pixels: u32,
height_pixels: u32,
},
XonXoff {
client_can_do: Bool,
},
Signal {
name: Bytes,
},
ExitStatus {
code: u32,
},
ExitSignal {
name: Bytes,
core_dumped: Bool,
error_message: StringUtf8,
language: StringAscii,
},
}
Expand description
The context
in the SSH_MSG_CHANNEL_REQUEST
message.
Variants§
Pty
A request of type pty-req
,
as defined in RFC4254 section 6.2.
Fields
X11
A request of type x11-req
,
as defined in RFC4254 section 6.3.
Fields
X11 authentication cookie.
Env
A request of type env
,
as defined in RFC4254 section 6.4.
Shell
A request of type shell
,
as defined in RFC4254 section 6.5.
Exec
A request of type exec
,
as defined in RFC4254 section 6.5.
Subsystem
A request of type subsystem
,
as defined in RFC4254 section 6.5.
WindowChange
A request of type window-change
,
as defined in RFC4254 section 6.7.
Fields
XonXoff
A request of type xon-xoff
,
as defined in RFC4254 section 6.8.
Fields
Signal
A request of type signal
,
as defined in RFC4254 section 6.9.
ExitStatus
A request of type exit-status
,
as defined in RFC4254 section 6.10.
ExitSignal
A request of type exit-signal
,
as defined in RFC4254 section 6.10.
Fields
error_message: StringUtf8
The error message for the signal.
language: StringAscii
Language tag.
Implementations§
source§impl ChannelRequestContext
impl ChannelRequestContext
sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Get the ChannelRequestContext
’s SSH identifier.
Trait Implementations§
source§impl BinRead for ChannelRequestContext
impl BinRead for ChannelRequestContext
source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<Self>
source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Self
from the reader using default arguments. Read moresource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Self
from the reader using default arguments and assuming
big-endian byte order. Read moresource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Self
from the reader using default arguments and assuming
little-endian byte order. Read moresource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
T
from the reader assuming native-endian byte order. Read moresource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self
from the reader using the given arguments. Read moresource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self
from the reader, assuming big-endian byte order, using the
given arguments. Read moresource§impl BinWrite for ChannelRequestContext
impl BinWrite for ChannelRequestContext
source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<()>
source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Self
to the writer using default arguments. Read moresource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Self
to the writer assuming big-endian byte order. Read moresource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Self
to the writer assuming little-endian byte order. Read moresource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_> ) -> Result<(), Error>
Self
to the writer using the given arguments. Read moresource§impl Clone for ChannelRequestContext
impl Clone for ChannelRequestContext
source§fn clone(&self) -> ChannelRequestContext
fn clone(&self) -> ChannelRequestContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more