Enum thrussh::Disconnect
source · pub enum Disconnect {
Show 14 variants
HostNotAllowedToConnect,
ProtocolError,
KeyExchangeFailed,
MACError,
CompressionError,
ServiceNotAvailable,
ProtocolVersionNotSupported,
HostKeyNotVerifiable,
ConnectionLost,
ByApplication,
TooManyConnections,
AuthCancelledByUser,
NoMoreAuthMethodsAvailable,
IllegalUserName,
// some variants omitted
}
Expand description
A reason for disconnection.
Variants
HostNotAllowedToConnect
ProtocolError
KeyExchangeFailed
MACError
CompressionError
ServiceNotAvailable
ProtocolVersionNotSupported
HostKeyNotVerifiable
ConnectionLost
ByApplication
TooManyConnections
AuthCancelledByUser
NoMoreAuthMethodsAvailable
IllegalUserName
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more