Enum mbpr::Fault
[−]
[src]
pub enum Fault { BadOpCode, BadStatus, Incomplete, BadMagic, InvalidPacket, }
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
[src]
impl Clone for Fault
[src]
fn clone(&self) -> Fault
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Fault
[src]
impl PartialEq for Fault
[src]
fn eq(&self, __arg_0: &Fault) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.