#[non_exhaustive]pub enum AdapterError {
BufferSizeExceeded,
TransmissionError(Error),
}Expand description
All types of errors that can happen during the conversion and transmission of LED commands.
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.
BufferSizeExceeded
Raised in the event that the RMT buffer is not large enough.
This almost always points to an issue with the BUFFER_SIZE parameter of RmtSmartLeds.
You should create this parameter using buffer_size, passing in the desired number of LEDs that will be controlled.
TransmissionError(Error)
Raised if something goes wrong in the transmission. This contains the inner HAL error (RmtError).
Trait Implementations§
Source§impl Clone for AdapterError
impl Clone for AdapterError
Source§fn clone(&self) -> AdapterError
fn clone(&self) -> AdapterError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdapterError
impl Debug for AdapterError
Source§impl Format for AdapterError
impl Format for AdapterError
Source§impl From<Error> for AdapterError
impl From<Error> for AdapterError
impl Copy for AdapterError
Auto Trait Implementations§
impl Freeze for AdapterError
impl RefUnwindSafe for AdapterError
impl Send for AdapterError
impl Sync for AdapterError
impl Unpin for AdapterError
impl UnwindSafe for AdapterError
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