pub enum DmaBufError {
InsufficientDescriptors,
UnsupportedMemoryRegion,
InvalidAlignment,
InvalidChunkSize,
}Expand description
Error returned from Dma[Rx|Tx|RxTx]Buf operations.
Variants§
InsufficientDescriptors
More descriptors are needed for the buffer size
UnsupportedMemoryRegion
Descriptors or buffers are not located in a supported memory region
InvalidAlignment
Buffer is not aligned to the required size
InvalidChunkSize
Invalid chunk size: must be > 0 and <= 4095
Trait Implementations§
Source§impl Clone for DmaBufError
impl Clone for DmaBufError
Source§fn clone(&self) -> DmaBufError
fn clone(&self) -> DmaBufError
Returns a copy 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 DmaBufError
impl Debug for DmaBufError
Source§impl From<DmaBufError> for DmaError
impl From<DmaBufError> for DmaError
Source§fn from(error: DmaBufError) -> Self
fn from(error: DmaBufError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DmaBufError
impl PartialEq for DmaBufError
impl Copy for DmaBufError
impl StructuralPartialEq for DmaBufError
Auto Trait Implementations§
impl Freeze for DmaBufError
impl RefUnwindSafe for DmaBufError
impl Send for DmaBufError
impl Sync for DmaBufError
impl Unpin for DmaBufError
impl UnwindSafe for DmaBufError
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