pub enum ErrorCode {
NotDefined = 0,
FileNotFound = 1,
AccessViolation = 2,
DiskFull = 3,
IllegalOperation = 4,
UnknownTransferId = 5,
FileAlreadyExists = 6,
NoSuchUser = 7,
BadOptions = 8,
}Expand description
The code in an ERROR packet.
Unless specified otherwise, these codes are all defined in RFC-1350.
Variants§
NotDefined = 0
Not defined, see error message (if any).
FileNotFound = 1
File not found.
AccessViolation = 2
Access violation.
DiskFull = 3
Disk full or allocation exceeded.
IllegalOperation = 4
Illegal TFTP operation.
UnknownTransferId = 5
Unknown transfer ID.
FileAlreadyExists = 6
File already exists.
NoSuchUser = 7
No such user.
BadOptions = 8
Options not acceptable. Defined in RFC-2347.
Implementations§
Trait Implementations§
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