pub enum CommandParseError {
UnknownType,
WrongLength,
InvalidField,
ReservedBitSet,
UnknownModulation,
}Expand description
Errors from parsing a Command payload.
Variants§
UnknownType
type_id is not a defined command.
WrongLength
Payload length is wrong for the command or modulation.
InvalidField
An enum field carries a value not in the defined table.
ReservedBitSet
A reserved bit (TX flag bits 1–7) was set.
UnknownModulation
SET_CONFIG’s modulation_id is not assigned.
Trait Implementations§
Source§impl Clone for CommandParseError
impl Clone for CommandParseError
Source§fn clone(&self) -> CommandParseError
fn clone(&self) -> CommandParseError
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 CommandParseError
impl Debug for CommandParseError
Source§impl Format for CommandParseError
impl Format for CommandParseError
Source§impl From<ModulationParseError> for CommandParseError
impl From<ModulationParseError> for CommandParseError
Source§fn from(e: ModulationParseError) -> Self
fn from(e: ModulationParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandParseError
impl PartialEq for CommandParseError
impl Copy for CommandParseError
impl Eq for CommandParseError
impl StructuralPartialEq for CommandParseError
Auto Trait Implementations§
impl Freeze for CommandParseError
impl RefUnwindSafe for CommandParseError
impl Send for CommandParseError
impl Sync for CommandParseError
impl Unpin for CommandParseError
impl UnsafeUnpin for CommandParseError
impl UnwindSafe for CommandParseError
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