Struct ssh2::Error[][src]

pub struct Error { /* fields omitted */ }

Representation of an error that can occur within libssh2

Methods

impl Error
[src]

Generate the last error that occurred for a Session.

Returns None if there was no last error.

Create a new error for the given code and message

Generate an error that represents EOF

Generate an error for unknown failure

Construct an error from an error code from libssh2

Get the message corresponding to this error

Return the code for this error

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

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

impl From<NulError> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error