pub enum RdmDeserializationError {
BufferTooSmall,
BufferTooBig,
CommandClassNotFound(u8),
ResponseTypeNotFound(u8),
WrongMessageLength(usize),
WrongChecksum,
WrongStartCode,
SourceUidIsBroadcast,
}
Variants§
BufferTooSmall
Buffer must be at least 22 bytes
BufferTooBig
Buffer must be at most 257 bytes
CommandClassNotFound(u8)
The command class was not found; contains contents of command class field
ResponseTypeNotFound(u8)
The response type was not found; contains contents of response type field
WrongMessageLength(usize)
The message length field is incorrect; contains result of parsing
WrongChecksum
Wrong checksum; contains result of parsing
WrongStartCode
Received wrong start code (0xCC) or sub start code (0x01); contains result of parsing
SourceUidIsBroadcast
The source uid is a broadcast address.
Trait Implementations§
Source§impl Clone for RdmDeserializationError
impl Clone for RdmDeserializationError
Source§fn clone(&self) -> RdmDeserializationError
fn clone(&self) -> RdmDeserializationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RdmDeserializationError
impl Debug for RdmDeserializationError
Source§impl Display for RdmDeserializationError
impl Display for RdmDeserializationError
Source§impl Error for RdmDeserializationError
impl Error for RdmDeserializationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Format for RdmDeserializationError
impl Format for RdmDeserializationError
Source§impl PartialEq for RdmDeserializationError
impl PartialEq for RdmDeserializationError
impl Copy for RdmDeserializationError
impl Eq for RdmDeserializationError
impl StructuralPartialEq for RdmDeserializationError
Auto Trait Implementations§
impl Freeze for RdmDeserializationError
impl RefUnwindSafe for RdmDeserializationError
impl Send for RdmDeserializationError
impl Sync for RdmDeserializationError
impl Unpin for RdmDeserializationError
impl UnwindSafe for RdmDeserializationError
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