pub enum Opcode {
RRQ,
WRQ,
DATA,
ACK,
ERROR,
}
Expand description
All tftp opcodes defined in rfc1350
assert_eq!(Opcode::RRQ as u16, 0);
assert_eq!(Opcode::try_from(1), Ok(Opcode::RRQ));
Variants§
Trait Implementations§
impl StructuralPartialEq for Opcode
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