PollingError

Enum PollingError 

Source
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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<DriverError: Display, HandlerError: Display> Display for PollingError<DriverError, HandlerError>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<DriverError: Display + Debug, HandlerError: Display + Debug> Error for PollingError<DriverError, HandlerError>

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<DriverError, HandlerError> Format for PollingError<DriverError, HandlerError>
where DriverError: Format, HandlerError: Format, RdmDeserializationError: Format,

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl<DriverError, HandlerError> From<DmxError<DriverError>> for PollingError<DriverError, HandlerError>

Source§

fn from(value: DmxError<DriverError>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<DriverError, HandlerError> Freeze for PollingError<DriverError, HandlerError>
where DriverError: Freeze, HandlerError: Freeze,

§

impl<DriverError, HandlerError> RefUnwindSafe for PollingError<DriverError, HandlerError>
where DriverError: RefUnwindSafe, HandlerError: RefUnwindSafe,

§

impl<DriverError, HandlerError> Send for PollingError<DriverError, HandlerError>
where DriverError: Send, HandlerError: Send,

§

impl<DriverError, HandlerError> Sync for PollingError<DriverError, HandlerError>
where DriverError: Sync, HandlerError: Sync,

§

impl<DriverError, HandlerError> Unpin for PollingError<DriverError, HandlerError>
where DriverError: Unpin, HandlerError: Unpin,

§

impl<DriverError, HandlerError> UnwindSafe for PollingError<DriverError, HandlerError>
where DriverError: UnwindSafe, HandlerError: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.