#[repr(u8)]pub enum ErrCode {
Show 16 variants
NO_ERROR = 0,
PID_ENCODING_ERROR = 1,
PID_UNKNOWN = 2,
PACKET_UNEXPECTED = 3,
TOKEN_CRC_ERROR = 4,
DATA_CRC_ERROR = 5,
TIMEOUT = 6,
BABBLE = 7,
TRUNCATED_EOP = 8,
SENT_RECEIVED_NAK = 9,
SENT_STALL = 10,
OVERRUN = 11,
SENT_EMPTY_PACKET = 12,
BITSTUFF_ERROR = 13,
SYNC_ERROR = 14,
WRONG_DATA_TOGGLE = 15,
}Variants§
NO_ERROR = 0
No error
PID_ENCODING_ERROR = 1
PID encoding error
PID_UNKNOWN = 2
PID unknown
PACKET_UNEXPECTED = 3
Packet unexpected
TOKEN_CRC_ERROR = 4
Token CRC error
DATA_CRC_ERROR = 5
Data CRC error
TIMEOUT = 6
Time out
BABBLE = 7
Babble
TRUNCATED_EOP = 8
Truncated EOP
SENT_RECEIVED_NAK = 9
Sent/Received NAK
SENT_STALL = 10
Sent Stall
OVERRUN = 11
Overrun
SENT_EMPTY_PACKET = 12
Sent empty packet
BITSTUFF_ERROR = 13
Bitstuff error
SYNC_ERROR = 14
Sync error
WRONG_DATA_TOGGLE = 15
Wrong data toggle
Implementations§
Trait Implementations§
Source§impl Ord for ErrCode
impl Ord for ErrCode
Source§impl PartialOrd for ErrCode
impl PartialOrd for ErrCode
impl Copy for ErrCode
impl Eq for ErrCode
impl StructuralPartialEq for ErrCode
Auto Trait Implementations§
impl Freeze for ErrCode
impl RefUnwindSafe for ErrCode
impl Send for ErrCode
impl Sync for ErrCode
impl Unpin for ErrCode
impl UnwindSafe for ErrCode
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