pub enum Error {
NoOpcode,
IncorrectOpcode(u16),
NoPath,
NoErrorMessage,
NoMode,
NoBlockId,
NoBufferProvided,
BufferTooLarge(usize),
MalformedAscii(AsAsciiStrError),
IncorrectMode,
}
Expand description
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§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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