pub enum DeviceMessageParseError {
UnknownType,
WrongLength,
TooShort,
InvalidField,
MissingContext,
UnknownContext,
}Expand description
Errors from parsing a device-message payload.
Variants§
UnknownType
WrongLength
Payload length wrong for the message shape.
TooShort
Payload shorter than the fixed prefix required by the message.
InvalidField
An enum field carries a value not in the defined table.
MissingContext
Parser needs the originating command’s type_id for an OK
frame but none was supplied.
UnknownContext
OK frame for an unknown originating command type, or unknown
modulation_id inside a SET_CONFIG result.
Trait Implementations§
Source§impl Clone for DeviceMessageParseError
impl Clone for DeviceMessageParseError
Source§fn clone(&self) -> DeviceMessageParseError
fn clone(&self) -> DeviceMessageParseError
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 DeviceMessageParseError
impl Debug for DeviceMessageParseError
Source§impl Format for DeviceMessageParseError
impl Format for DeviceMessageParseError
Source§impl From<InfoParseError> for DeviceMessageParseError
impl From<InfoParseError> for DeviceMessageParseError
Source§fn from(e: InfoParseError) -> Self
fn from(e: InfoParseError) -> Self
Converts to this type from the input type.
Source§impl From<ModulationParseError> for DeviceMessageParseError
impl From<ModulationParseError> for DeviceMessageParseError
Source§fn from(e: ModulationParseError) -> Self
fn from(e: ModulationParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceMessageParseError
impl PartialEq for DeviceMessageParseError
impl Copy for DeviceMessageParseError
impl Eq for DeviceMessageParseError
impl StructuralPartialEq for DeviceMessageParseError
Auto Trait Implementations§
impl Freeze for DeviceMessageParseError
impl RefUnwindSafe for DeviceMessageParseError
impl Send for DeviceMessageParseError
impl Sync for DeviceMessageParseError
impl Unpin for DeviceMessageParseError
impl UnsafeUnpin for DeviceMessageParseError
impl UnwindSafe for DeviceMessageParseError
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