pub enum ErrorCode {
    NotDefined,
    FileNotFound,
    AccessViolation,
    DiskFull,
    IllegalOperation,
    UnknownTransferId,
    FileAlreadyExists,
    NoSuchUser,
    BadOptions,
}
Expand description

The code in an ERROR packet.

Unless specified otherwise, these codes are all defined in RFC-1350.

Variants

NotDefined

Not defined, see error message (if any).

FileNotFound

File not found.

AccessViolation

Access violation.

DiskFull

Disk full or allocation exceeded.

IllegalOperation

Illegal TFTP operation.

UnknownTransferId

Unknown transfer ID.

FileAlreadyExists

File already exists.

NoSuchUser

No such user.

BadOptions

Options not acceptable. Defined in RFC-2347.

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.