[][src]Enum thrussh::Error

pub enum Error {
    CouldNotReadKey,
    KexInit,
    NoCommonKexAlgo,
    NoCommonKeyAlgo,
    NoCommonCipher,
    NoCommonCompression,
    Version,
    Kex,
    PacketAuth,
    Inconsistent,
    NotAuthenticated,
    IndexOutOfBounds,
    UnknownKey,
    WrongServerSig,
    WrongChannel,
    Disconnect,
    NoHomeDir,
    KeyChanged {
        line: usize,
    },
    HUP,
    ConnectionTimeout,
    NoAuthMethod,
    SendError,
    Keys(Error),
    IO(Error),
    Utf8(Utf8Error),
    Compress(CompressError),
    Decompress(DecompressError),
    Join(JoinError),
    Openssl(ErrorStack),
    Elapsed(Elapsed),
}

Variants

CouldNotReadKey

The key file could not be parsed.

KexInit

Unspecified problem with the beginning of key exchange.

NoCommonKexAlgo

No common key exchange algorithm.

NoCommonKeyAlgo

No common signature algorithm.

NoCommonCipher

No common cipher.

NoCommonCompression

No common compression algorithm.

Version

Invalid SSH version string.

Kex

Error during key exchange.

PacketAuth

Invalid packet authentication code.

Inconsistent

The protocol is in an inconsistent state.

NotAuthenticated

The client is not yet authenticated.

IndexOutOfBounds

Index out of bounds.

UnknownKey

Unknown server key.

WrongServerSig

The server provided a wrong signature.

WrongChannel

Message received/sent on unopened channel.

Disconnect

Disconnected

NoHomeDir

No home directory found when trying to learn new host key.

KeyChanged

Remote key changed, this could mean a man-in-the-middle attack is being performed on the connection.

Fields of KeyChanged

line: usize
HUP

Connection closed by the remote side.

ConnectionTimeout

Connection timeout.

NoAuthMethod

Missing authentication method.

SendError
Keys(Error)
IO(Error)
Utf8(Utf8Error)
Compress(CompressError)
Decompress(DecompressError)
Join(JoinError)
Openssl(ErrorStack)
Elapsed(Elapsed)

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<CompressError> for Error[src]

impl From<DecompressError> for Error[src]

impl From<Elapsed> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<ErrorStack> for Error[src]

impl From<JoinError> for Error[src]

impl From<Utf8Error> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.