Enum thrussh::Disconnect
source · pub enum Disconnect {
Show 14 variants
HostNotAllowedToConnect = 1,
ProtocolError = 2,
KeyExchangeFailed = 3,
MACError = 5,
CompressionError = 6,
ServiceNotAvailable = 7,
ProtocolVersionNotSupported = 8,
HostKeyNotVerifiable = 9,
ConnectionLost = 10,
ByApplication = 11,
TooManyConnections = 12,
AuthCancelledByUser = 13,
NoMoreAuthMethodsAvailable = 14,
IllegalUserName = 15,
// some variants omitted
}
Expand description
A reason for disconnection.
Variants§
HostNotAllowedToConnect = 1
ProtocolError = 2
KeyExchangeFailed = 3
MACError = 5
CompressionError = 6
ServiceNotAvailable = 7
ProtocolVersionNotSupported = 8
HostKeyNotVerifiable = 9
ConnectionLost = 10
ByApplication = 11
TooManyConnections = 12
AuthCancelledByUser = 13
NoMoreAuthMethodsAvailable = 14
IllegalUserName = 15
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Disconnect
impl Send for Disconnect
impl Sync for Disconnect
impl Unpin for Disconnect
impl UnwindSafe for Disconnect
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