#[repr(u8)]pub enum CommandError {
Show 13 variants
InvalidCommand = 1,
NotInLearnMode = 2,
NotInSetupMode = 3,
TooManyEvents = 4,
NoEv = 5,
InvalidEvIndex = 6,
InvalidEvent = 7,
InvalidEventIndex = 8,
InvalidParamIndex = 9,
InvalidNvIndex = 10,
InvalidEvValue = 11,
InvalidNvValue = 12,
AnotherModuleIsInLearnMode = 13,
}Expand description
Error codes for CMDERR message
Variants§
InvalidCommand = 1
Invalid command
NotInLearnMode = 2
The mode is not currently in learn mode
NotInSetupMode = 3
The mode is not currently in setup mode
TooManyEvents = 4
Too many events provisioned in module
The event storage is exhausted
NoEv = 5
No Event-Variable
InvalidEvIndex = 6
Invalid EV index
InvalidEvent = 7
Invalid event
InvalidEventIndex = 8
Invalid event index
InvalidParamIndex = 9
Invalid param index
InvalidNvIndex = 10
Invalid NV index
InvalidEvValue = 11
Invalid EV value
InvalidNvValue = 12
Invalid NV value
AnotherModuleIsInLearnMode = 13
Another module is already in learn mode
Sent when module in learn mode sees NNLRN for different module (also exits learn mode)
Trait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandError
Source§impl Debug for CommandError
impl Debug for CommandError
impl Eq for CommandError
Source§impl From<CommandError> for u8
impl From<CommandError> for u8
Source§fn from(enum_value: CommandError) -> Self
fn from(enum_value: CommandError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandError
impl PartialEq for CommandError
Source§fn eq(&self, other: &CommandError) -> bool
fn eq(&self, other: &CommandError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandError
Source§impl TryFrom<u8> for CommandError
impl TryFrom<u8> for CommandError
Source§type Error = TryFromPrimitiveError<CommandError>
type Error = TryFromPrimitiveError<CommandError>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CommandError
impl TryFromPrimitive for CommandError
const NAME: &'static str = "CommandError"
type Primitive = u8
type Error = TryFromPrimitiveError<CommandError>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl UnsafeFromPrimitive for CommandError
impl UnsafeFromPrimitive for CommandError
type Primitive = u8
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0:
Prefer to use unchecked_transmute_from, from_unchecked will be removed in a future release.
Transmutes into an enum from its primitive. Read more
Auto Trait Implementations§
impl Freeze for CommandError
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnsafeUnpin for CommandError
impl UnwindSafe for CommandError
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