Enum openssh::Error[][src]

pub enum Error {
    Master(Error),
    Connect(Error),
    Ssh(Error),
    Remote(Error),
    Disconnected,
}
Expand description

Errors that occur when interacting with a remote process.

Variants

Master(Error)

The master connection failed.

Connect(Error)

Failed to establish initial connection to the remote host.

Ssh(Error)

Failed to run the ssh command locally.

Remote(Error)

The remote process failed.

Disconnected

The connection to the remote host was severed.

Note that this is a best-effort error, and it may instead signify that the remote process exited with an error code of 255. You should call Session::check to verify if you get this error back.

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

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.

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.