Enum dmx_rdm::rdm_data::RdmDeserializationError
source · 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 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)>
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()
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