Struct ssh2::Error
[−]
[src]
pub struct Error { // some fields omitted }
Representation of an error that can occur within libssh2
Methods
impl Error
[src]
fn last_error(sess: &Session) -> Option<Error>
Generate the last error that occurred for a Session
.
Returns None
if there was no last error.
fn new(code: c_int, msg: &'static str) -> Error
Create a new error for the given code and message
fn eof() -> Error
Generate an error that represents EOF
fn from_errno(code: c_int) -> Error
Construct an error from an error code from libssh2
fn message(&self) -> &str
Get the message corresponding to this error
fn code(&self) -> c_int
Return the code for this error
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more