Struct ssh2::Error [] [src]

pub struct Error { /* fields omitted */ }

Representation of an error that can occur within libssh2

Methods

impl Error
[src]

[src]

Generate the last error that occurred for a Session.

Returns None if there was no last error.

[src]

Create a new error for the given code and message

[src]

Generate an error that represents EOF

[src]

Generate an error for unknown failure

[src]

Construct an error from an error code from libssh2

[src]

Get the message corresponding to this error

[src]

Return the code for this error

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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

impl From<NulError> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error