Enum tftp::Error[][src]

pub enum Error {
    NoOpcode,
    IncorrectOpcode(u16),
    NoPath,
    NoErrorMessage,
    NoMode,
    NoBlockId,
    NoBufferProvided,
    BufferTooLarge(usize),
    MalformedAscii(AsAsciiStrError),
    IncorrectMode,
}

tftp crate errors.

Variants

NoOpcode

Incoming buffer doesn’t contain an operation code

IncorrectOpcode(u16)

Incorrect operation code was provided: {0}

NoPath

Incoming buffer doesn’t contain a file path for file operation

NoErrorMessage

Incoming error doesn’t contain an error message

NoMode

Incoming buffer doesn’t contain a mode for file operation

NoBlockId

Incoming buffer doesn’t contain a block id for file operation

NoBufferProvided

No data buffer was provided in message

BufferTooLarge(usize)

Data buffer must not exceed 512 bytes, current len: {0}

MalformedAscii(AsAsciiStrError)

Unable to interpret buffer as ASCII string: {0}

IncorrectMode

Incorrect file operation mode

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.