pub enum OpCode {
RRQ = 1,
WRQ = 2,
DATA = 3,
ACK = 4,
ERROR = 5,
OACK = 6,
}Expand description
The operation code that begins every TFTP packet.
Variants§
RRQ = 1
Read request.
WRQ = 2
Write request.
DATA = 3
Data.
ACK = 4
Acknowledgment.
ERROR = 5
Error.
OACK = 6
Option Acknowledgment.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpCode
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnwindSafe for OpCode
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