#[non_exhaustive]pub enum RdmError {
Show 35 variants
InvalidStartCode,
InvalidFrameLength(u8),
InvalidMessageLength(u8),
InvalidChecksum(u16, u16),
InvalidResponseType(u8),
InvalidNackReasonCode(u16),
InvalidStatusType(u8),
InvalidCommandClass(u8),
InvalidCommandClassImplementation(u8),
UnsupportedParameter(u8, u16),
InvalidParameterDataLength(u8),
InvalidParameterDataType(u8),
InvalidSensorUnit(u8),
InvalidSensorUnitPrefix(u8),
InvalidDiscoveryUniqueBranchPreamble,
Utf8Error {
source: Utf8Error,
},
TryFromSliceError,
InvalidLampState(u8),
InvalidLampOnMode(u8),
InvalidPowerState(u8),
InvalidOnOffStates(u8),
InvalidDisplayInvertMode(u8),
InvalidResetDeviceMode(u8),
InvalidSensorType(u8),
InvalidIdentifyMode(u8),
InvalidMergeMode(u8),
InvalidPresetProgrammed(u8),
InvalidPinCode(u16),
InvalidDhcpMode(u8),
InvalidStaticConfigType(u8),
InvalidBrokerState(u8),
InvalidDiscoveryState(u8),
InvalidEndpointMode(u8),
InvalidEndpointType(u8),
MalformedPacket,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidStartCode
InvalidFrameLength(u8)
InvalidMessageLength(u8)
InvalidChecksum(u16, u16)
InvalidResponseType(u8)
InvalidNackReasonCode(u16)
InvalidStatusType(u8)
InvalidCommandClass(u8)
InvalidCommandClassImplementation(u8)
UnsupportedParameter(u8, u16)
InvalidParameterDataLength(u8)
InvalidParameterDataType(u8)
InvalidSensorUnit(u8)
InvalidSensorUnitPrefix(u8)
InvalidDiscoveryUniqueBranchPreamble
Utf8Error
TryFromSliceError
InvalidLampState(u8)
InvalidLampOnMode(u8)
InvalidPowerState(u8)
InvalidOnOffStates(u8)
InvalidDisplayInvertMode(u8)
InvalidResetDeviceMode(u8)
InvalidSensorType(u8)
InvalidIdentifyMode(u8)
InvalidMergeMode(u8)
InvalidPresetProgrammed(u8)
InvalidPinCode(u16)
InvalidDhcpMode(u8)
InvalidStaticConfigType(u8)
InvalidBrokerState(u8)
InvalidDiscoveryState(u8)
InvalidEndpointMode(u8)
InvalidEndpointType(u8)
MalformedPacket
Trait Implementations§
Source§impl Error for RdmError
impl Error for RdmError
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 From<TryFromSliceError> for RdmError
impl From<TryFromSliceError> for RdmError
Source§fn from(_: TryFromSliceError) -> Self
fn from(_: TryFromSliceError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for RdmError
Auto Trait Implementations§
impl Freeze for RdmError
impl RefUnwindSafe for RdmError
impl Send for RdmError
impl Sync for RdmError
impl Unpin for RdmError
impl UnwindSafe for RdmError
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