pub enum Fault {
BadOpCode,
BadStatus,
Incomplete,
BadMagic,
InvalidPacket,
}
Expand description
Parsing Error structure
Variants§
BadOpCode
Opcode does not conform to the standard
BadStatus
Status code does not conform to standard
Incomplete
More data is needed to fully parse packet.
BadMagic
Fixed initial field
- Request =
0x80
- Response =
0x81
- DataType =
0x00
Was wrong.
InvalidPacket
Trait Implementations§
impl Copy for Fault
impl Eq for Fault
impl StructuralPartialEq for Fault
Auto Trait Implementations§
impl Freeze for Fault
impl RefUnwindSafe for Fault
impl Send for Fault
impl Sync for Fault
impl Unpin for Fault
impl UnwindSafe for Fault
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