#[repr(u16)]pub enum Operation {
Rrq = 1,
Wrq = 2,
Data = 3,
Ack = 4,
Error = 5,
}
Expand description
TFTP opcodes.
Variants§
Implementations§
Trait Implementations§
Source§impl From<FileOperation> for Operation
impl From<FileOperation> for Operation
Source§fn from(file_op: FileOperation) -> Self
fn from(file_op: FileOperation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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