pub enum ErrorCode {
NotDefined,
FileNotFound,
AccessViolation,
DiskFull,
IllegalOperation,
UnknownTransferId,
FileAlreadyExists,
NoSuchUser,
}
Expand description
All error codes defined in rfc1350 for an ERROR packet
assert_eq!(ErrorCode::NotDefined as u16, 0u16);
assert_eq!(ErrorCode::try_from(0), Ok(ErrorCode::NotDefined));
Variants§
NotDefined
FileNotFound
AccessViolation
DiskFull
IllegalOperation
UnknownTransferId
FileAlreadyExists
NoSuchUser
Trait Implementations§
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