pub enum ChannelRequestContext<'b> {
Pty {
term: Bytes<'b>,
width_chars: u32,
height_chars: u32,
width_pixels: u32,
height_pixels: u32,
modes: Bytes<'b>,
},
X11 {
single_connection: Bool,
x11_authentication_protocol: Bytes<'b>,
x11_authentication_cookie: Bytes<'b>,
x11_screen_number: u32,
},
Env {
name: Bytes<'b>,
value: Bytes<'b>,
},
Shell,
Exec {
command: Bytes<'b>,
},
Subsystem {
name: Bytes<'b>,
},
WindowChange {
width_chars: u32,
height_chars: u32,
width_pixels: u32,
height_pixels: u32,
},
XonXoff {
client_can_do: Bool,
},
Signal {
name: Bytes<'b>,
},
ExitStatus {
code: u32,
},
ExitSignal {
name: Bytes<'b>,
core_dumped: Bool,
error_message: Utf8<'b>,
language: Ascii<'b>,
},
}
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.
Implementations§
Source§impl ChannelRequestContext<'_>
impl ChannelRequestContext<'_>
Sourcepub fn as_ascii(&self) -> Ascii<'static>
pub fn as_ascii(&self) -> Ascii<'static>
Get the ChannelRequestContext
’s SSH identifier.
Trait Implementations§
Source§impl<'b> BinRead for ChannelRequestContext<'b>
impl<'b> BinRead for ChannelRequestContext<'b>
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<'b> BinWrite for ChannelRequestContext<'b>
impl<'b> BinWrite for ChannelRequestContext<'b>
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<'b> Clone for ChannelRequestContext<'b>
impl<'b> Clone for ChannelRequestContext<'b>
Source§fn clone(&self) -> ChannelRequestContext<'b>
fn clone(&self) -> ChannelRequestContext<'b>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more