pub enum PollingError<DriverError, HandlerError> {
UartOverflow,
TimeoutError,
UnknownStartCode,
WrongPackageSize,
NotMatching,
DriverError(DriverError),
HandlerError(HandlerError),
DeserializationError(RdmDeserializationError),
}
Expand description
Errors that can happen during polling. These errors should not cause panics.
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.
UnknownStartCode
The start code is unknown.
WrongPackageSize
The package size is insufficient.
NotMatching
The received package doesn’t match the request.
DriverError(DriverError)
A driver specific error occurred.
HandlerError(HandlerError)
A handler specific error occurred.
DeserializationError(RdmDeserializationError)
Raised when an RDM package could not be deserialized.
Trait Implementations§
Source§impl<DriverError: Debug, HandlerError: Debug> Debug for PollingError<DriverError, HandlerError>
impl<DriverError: Debug, HandlerError: Debug> Debug for PollingError<DriverError, HandlerError>
Source§impl<DriverError: Display, HandlerError: Display> Display for PollingError<DriverError, HandlerError>
impl<DriverError: Display, HandlerError: Display> Display for PollingError<DriverError, HandlerError>
Source§impl<DriverError: Display + Debug, HandlerError: Display + Debug> Error for PollingError<DriverError, HandlerError>
impl<DriverError: Display + Debug, HandlerError: Display + Debug> Error for PollingError<DriverError, HandlerError>
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> Format for PollingError<DriverError, HandlerError>
impl<DriverError, HandlerError> Format for PollingError<DriverError, HandlerError>
Auto Trait Implementations§
impl<DriverError, HandlerError> Freeze for PollingError<DriverError, HandlerError>
impl<DriverError, HandlerError> RefUnwindSafe for PollingError<DriverError, HandlerError>where
DriverError: RefUnwindSafe,
HandlerError: RefUnwindSafe,
impl<DriverError, HandlerError> Send for PollingError<DriverError, HandlerError>
impl<DriverError, HandlerError> Sync for PollingError<DriverError, HandlerError>
impl<DriverError, HandlerError> Unpin for PollingError<DriverError, HandlerError>
impl<DriverError, HandlerError> UnwindSafe for PollingError<DriverError, HandlerError>where
DriverError: UnwindSafe,
HandlerError: 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