pub enum DmxError<E> {
UartOverflow,
TimeoutError,
DeserializationError(RdmDeserializationError),
DriverError(E),
}
Variants§
UartOverflow
There were fewer bytes written to the uart then there should have been.
TimeoutError
The request timed time out. Important: If you implement a driver make sure this error gets raised instead of a driver specific error.
DeserializationError(RdmDeserializationError)
Raised when an RDM package could not be deserialized.
DriverError(E)
An error raised by the uart driver.
Trait Implementations§
Source§impl<E: Display + Debug> Error for DmxError<E>
impl<E: Display + Debug> Error for DmxError<E>
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<DriverError, HandlerError> From<DmxError<DriverError>> for PollingError<DriverError, HandlerError>
impl<DriverError, HandlerError> From<DmxError<DriverError>> for PollingError<DriverError, HandlerError>
Source§impl<E> From<DmxError<E>> for RdmResponseError<E>
impl<E> From<DmxError<E>> for RdmResponseError<E>
Source§impl<E> From<DmxUartDriverError<E>> for DmxError<E>
impl<E> From<DmxUartDriverError<E>> for DmxError<E>
Source§fn from(value: DmxUartDriverError<E>) -> Self
fn from(value: DmxUartDriverError<E>) -> Self
Converts to this type from the input type.
impl<E: Copy> Copy for DmxError<E>
impl<E: Eq> Eq for DmxError<E>
impl<E> StructuralPartialEq for DmxError<E>
Auto Trait Implementations§
impl<E> Freeze for DmxError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DmxError<E>where
E: RefUnwindSafe,
impl<E> Send for DmxError<E>where
E: Send,
impl<E> Sync for DmxError<E>where
E: Sync,
impl<E> Unpin for DmxError<E>where
E: Unpin,
impl<E> UnwindSafe for DmxError<E>where
E: UnwindSafe,
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