pub enum DisconnectReason {
Show 16 variants
HostNotAllowedToConnect,
ProtocolError,
KeyExchangeFailed,
Reserved,
MacError,
CompressionError,
ServiceNotAvailable,
ProtocolVersionNotSupported,
HostKeyNotVerifiable,
ConnectionLost,
ByApplication,
TooManyConnections,
AuthCancelledByUser,
NoMoreAuthMethodsAvailable,
IllegalUserName,
Other(u32),
}
Expand description
The reason
for disconnect in the SSH_MSG_DISCONNECT
message.
Variants§
HostNotAllowedToConnect
SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT
.
ProtocolError
SSH_DISCONNECT_PROTOCOL_ERROR
.
KeyExchangeFailed
SSH_DISCONNECT_KEY_EXCHANGE_FAILED
.
Reserved
SSH_DISCONNECT_RESERVED
.
MacError
SSH_DISCONNECT_MAC_ERROR
.
CompressionError
SSH_DISCONNECT_COMPRESSION_ERROR
.
ServiceNotAvailable
SSH_DISCONNECT_SERVICE_NOT_AVAILABLE
.
ProtocolVersionNotSupported
SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED
.
HostKeyNotVerifiable
SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE
.
ConnectionLost
SSH_DISCONNECT_CONNECTION_LOST
.
ByApplication
SSH_DISCONNECT_BY_APPLICATION
.
TooManyConnections
SSH_DISCONNECT_TOO_MANY_CONNECTIONS
.
AuthCancelledByUser
SSH_DISCONNECT_AUTH_CANCELLED_BY_USER
.
NoMoreAuthMethodsAvailable
SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE
.
IllegalUserName
SSH_DISCONNECT_ILLEGAL_USER_NAME
.
Other(u32)
Any other disconnect reason, may be non-standard.
The ‘reason’ values in the range of 0xFE000000
through 0xFFFFFFFF
are reserved for PRIVATE USE.
Trait Implementations§
Source§impl BinRead for DisconnectReason
impl BinRead for DisconnectReason
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>
Read
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>
Read
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>
Read
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>
Read
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>
Read
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>
Read
Self
from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for DisconnectReason
impl BinWrite for DisconnectReason
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>
Write
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>
Write
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>
Write
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>
Write
Self
to the writer using the given arguments. Read moreSource§impl Clone for DisconnectReason
impl Clone for DisconnectReason
Source§fn clone(&self) -> DisconnectReason
fn clone(&self) -> DisconnectReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DisconnectReason
impl Debug for DisconnectReason
Source§impl ReadEndian for DisconnectReason
impl ReadEndian for DisconnectReason
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl WriteEndian for DisconnectReason
impl WriteEndian for DisconnectReason
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for DisconnectReason
impl RefUnwindSafe for DisconnectReason
impl Send for DisconnectReason
impl Sync for DisconnectReason
impl Unpin for DisconnectReason
impl UnwindSafe for DisconnectReason
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