pub enum Error {
LengthMismatch,
InvalidState,
TransferError,
}
Expand description
Runtime errors that may occur when dealing with DMA transfers.
Variants§
LengthMismatch
Supplied buffers both have lengths > 1 beat, but not equal to each other
Buffers need to either have the same length in beats, or one should have length == 1. In cases where one buffer is length 1, that buffer will be the source or destination of each beat in the transfer. If both buffers had length >1, but not equal to each other, then it would not be clear how to structure the transfer.
InvalidState
Operation is not valid in the current state of the object.
TransferError
Chip reported an error during transfer
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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