#[non_exhaustive]pub enum RefreshError<CodecError, BackendError> {
Codec(CodecError),
Backend(BackendError),
}Expand description
Unified error type returned by LedStrip::write.
Wraps either a codec-level error (encoding failure) or a backend-level error (transmission failure), so callers see a single error shape regardless of which layer failed.
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.
Codec(CodecError)
The codec failed to encode the pixel data into transport words.
Backend(BackendError)
The transport backend failed to transmit the encoded words.
Trait Implementations§
Source§impl<CodecError: Clone, BackendError: Clone> Clone for RefreshError<CodecError, BackendError>
impl<CodecError: Clone, BackendError: Clone> Clone for RefreshError<CodecError, BackendError>
impl<CodecError: Copy, BackendError: Copy> Copy for RefreshError<CodecError, BackendError>
Source§impl<CodecError: Debug, BackendError: Debug> Debug for RefreshError<CodecError, BackendError>
impl<CodecError: Debug, BackendError: Debug> Debug for RefreshError<CodecError, BackendError>
Source§impl<CodecError, BackendError> Display for RefreshError<CodecError, BackendError>
impl<CodecError, BackendError> Display for RefreshError<CodecError, BackendError>
impl<CodecError: Eq, BackendError: Eq> Eq for RefreshError<CodecError, BackendError>
Source§impl<CodecError, BackendError> Error for RefreshError<CodecError, BackendError>
impl<CodecError, BackendError> Error for RefreshError<CodecError, BackendError>
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<CodecError: PartialEq, BackendError: PartialEq> PartialEq for RefreshError<CodecError, BackendError>
impl<CodecError: PartialEq, BackendError: PartialEq> PartialEq for RefreshError<CodecError, BackendError>
impl<CodecError: PartialEq, BackendError: PartialEq> StructuralPartialEq for RefreshError<CodecError, BackendError>
Auto Trait Implementations§
impl<CodecError, BackendError> Freeze for RefreshError<CodecError, BackendError>
impl<CodecError, BackendError> RefUnwindSafe for RefreshError<CodecError, BackendError>where
CodecError: RefUnwindSafe,
BackendError: RefUnwindSafe,
impl<CodecError, BackendError> Send for RefreshError<CodecError, BackendError>
impl<CodecError, BackendError> Sync for RefreshError<CodecError, BackendError>
impl<CodecError, BackendError> Unpin for RefreshError<CodecError, BackendError>
impl<CodecError, BackendError> UnsafeUnpin for RefreshError<CodecError, BackendError>where
CodecError: UnsafeUnpin,
BackendError: UnsafeUnpin,
impl<CodecError, BackendError> UnwindSafe for RefreshError<CodecError, BackendError>where
CodecError: UnwindSafe,
BackendError: 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