pub enum ErrorCode {
Session(c_int),
SFTP(c_int),
}
Expand description
An error code originating from a particular source.
Variants§
Session(c_int)
Codes for errors that originate in libssh2.
Can be one of LIBSSH2_ERROR_*
constants.
SFTP(c_int)
Codes for errors that originate in the SFTP subsystem.
Can be one of LIBSSH2_FX_*
constants.
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more