Enum thrussh::Error[][src]

pub enum Error {
Show variants CouldNotReadKey, KexInit, NoCommonKexAlgo, NoCommonKeyAlgo, NoCommonCipher, NoCommonCompression, Version, Kex, PacketAuth, Inconsistent, NotAuthenticated, IndexOutOfBounds, UnknownKey, WrongServerSig, WrongChannel, Disconnect, NoHomeDir, KeyChanged { line: usize, }, HUP, ConnectionTimeout, NoAuthMethod, SendError, Pending, Keys(Error), IO(Error), Utf8(Utf8Error), Compress(CompressError), Decompress(DecompressError), Join(JoinError), 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.

Show fields

Fields of KeyChanged

line: usize
HUP

Connection closed by the remote side.

ConnectionTimeout

Connection timeout.

NoAuthMethod

Missing authentication method.

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

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.