pub enum DisconnectCode {
Show 15 variants
HostNotAllowedToConnect = 1,
ProtocolError = 2,
KeyExchangeFailed = 3,
Reserved = 4,
MacError = 5,
CompressionError = 6,
ServiceNotAvailable = 7,
ProtocolVersionNotSupported = 8,
HostKeyNotVerifiable = 9,
ConnectionLost = 10,
ByApplication = 11,
TooManyConnections = 12,
AuthCancelledByUser = 13,
NoMoreAuthMethodsAvailable = 14,
IllegalUserName = 15,
}Variants§
HostNotAllowedToConnect = 1
ProtocolError = 2
KeyExchangeFailed = 3
Reserved = 4
MacError = 5
CompressionError = 6
ServiceNotAvailable = 7
ProtocolVersionNotSupported = 8
HostKeyNotVerifiable = 9
ConnectionLost = 10
ByApplication = 11
TooManyConnections = 12
AuthCancelledByUser = 13
NoMoreAuthMethodsAvailable = 14
IllegalUserName = 15
Trait Implementations§
Source§impl Clone for DisconnectCode
impl Clone for DisconnectCode
Source§fn clone(&self) -> DisconnectCode
fn clone(&self) -> DisconnectCode
Returns a copy 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 moreimpl Copy for DisconnectCode
Auto Trait Implementations§
impl Freeze for DisconnectCode
impl RefUnwindSafe for DisconnectCode
impl Send for DisconnectCode
impl Sync for DisconnectCode
impl Unpin for DisconnectCode
impl UnwindSafe for DisconnectCode
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