#[repr(u16)]pub enum Opcode {
Rrq = 1,
Wrq = 2,
Data = 3,
Ack = 4,
Error = 5,
Oack = 6,
}Expand description
Variants§
Rrq = 1
Read request opcode
Wrq = 2
Write request opcode
Data = 3
Data opcode
Ack = 4
Acknowledgement opcode
Error = 5
Error opcode
Oack = 6
Option acknowledgement opcode
Implementations§
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