Enum ssh_packet::Message
source · #[non_exhaustive]pub enum Message {
Show 25 variants
Disconnect(Disconnect),
Ignore(Ignore),
Debug(Debug),
Unimplemented(Unimplemented),
ServiceRequest(ServiceRequest),
ServiceAccept(ServiceAccept),
KexInit(KexInit),
NewKeys(NewKeys),
AuthRequest(AuthRequest),
AuthFailure(AuthFailure),
AuthSuccess(AuthSuccess),
AuthBanner(AuthBanner),
GlobalRequest(GlobalRequest),
RequestSuccess(RequestSuccess),
ChannelOpen(ChannelOpen),
ChannelOpenConfirmation(ChannelOpenConfirmation),
ChannelOpenFailure(ChannelOpenFailure),
ChannelWindowAdjust(ChannelWindowAdjust),
ChannelData(ChannelData),
ChannelExtendedData(ChannelExtendedData),
ChannelEof(ChannelEof),
ChannelClose(ChannelClose),
ChannelRequest(ChannelRequest),
ChannelSuccess(ChannelSuccess),
ChannelFailure(ChannelFailure),
}Expand description
A SSH 2.0 message in it’s decrypted form.
§Caveats
The AuthPkOk, AuthPasswdChangereq, AuthInfoRequest and AuthInfoResponse
messages are not included in this enum because they share the same magic byte value in the protocol.
This is the same for the KexEcdhInit and KexEcdhReply.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Disconnect(Disconnect)
See trans::Disconnect for more details.
Ignore(Ignore)
See trans::Ignore for more details.
Debug(Debug)
See trans::Debug for more details.
Unimplemented(Unimplemented)
See trans::Unimplemented for more details.
ServiceRequest(ServiceRequest)
See trans::ServiceRequest for more details.
ServiceAccept(ServiceAccept)
See trans::ServiceAccept for more details.
KexInit(KexInit)
See trans::KexInit for more details.
NewKeys(NewKeys)
See trans::NewKeys for more details.
AuthRequest(AuthRequest)
See userauth::AuthRequest for more details.
AuthFailure(AuthFailure)
See userauth::AuthFailure for more details.
AuthSuccess(AuthSuccess)
See userauth::AuthSuccess for more details.
AuthBanner(AuthBanner)
See userauth::AuthBanner for more details.
GlobalRequest(GlobalRequest)
See connect::GlobalRequest for more details.
RequestSuccess(RequestSuccess)
See connect::RequestSuccess for more details.
ChannelOpen(ChannelOpen)
See connect::ChannelOpen for more details.
ChannelOpenConfirmation(ChannelOpenConfirmation)
See connect::ChannelOpenConfirmation for more details.
ChannelOpenFailure(ChannelOpenFailure)
See connect::ChannelOpenFailure for more details.
ChannelWindowAdjust(ChannelWindowAdjust)
See connect::ChannelWindowAdjust for more details.
ChannelData(ChannelData)
See connect::ChannelData for more details.
ChannelExtendedData(ChannelExtendedData)
See connect::ChannelExtendedData for more details.
ChannelEof(ChannelEof)
See connect::ChannelEof for more details.
ChannelClose(ChannelClose)
See connect::ChannelClose for more details.
ChannelRequest(ChannelRequest)
See connect::ChannelRequest for more details.
ChannelSuccess(ChannelSuccess)
See connect::ChannelSuccess for more details.
ChannelFailure(ChannelFailure)
See connect::ChannelFailure for more details.
Trait Implementations§
source§impl BinRead for Message
impl BinRead for Message
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 Message
impl BinWrite for Message
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 more