pub enum Error {
AddressInvalid,
BadLength {
expected: usize,
got: usize,
},
BadDisplayData {
position: u8,
},
}Expand description
Packet checking error
Variants§
AddressInvalid
The first bit of the address isn’t set - so it isn’t a valid address
BadLength
The packet was an unexpected length
BadDisplayData
Bad (non-ascii) bytes in the display data field.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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