pub enum DmaBufError {
BufferTooSmall,
InsufficientDescriptors,
UnsupportedMemoryRegion,
InvalidAlignment(DmaAlignmentError),
InvalidChunkSize,
}Available on crate feature
unstable only.Expand description
Error returned from Dma[Rx|Tx|RxTx]Buf operations.
Variants§
BufferTooSmall
The buffer is smaller than the requested size.
InsufficientDescriptors
More descriptors are needed for the buffer size.
UnsupportedMemoryRegion
Descriptors or buffers are not located in a supported memory region.
InvalidAlignment(DmaAlignmentError)
Buffer address or size is not properly aligned.
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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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<DmaAlignmentError> for DmaBufError
impl From<DmaAlignmentError> for DmaBufError
Source§fn from(err: DmaAlignmentError) -> Self
fn from(err: DmaAlignmentError) -> Self
Converts to this type from the input type.
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 Hash for DmaBufError
impl Hash for DmaBufError
Source§impl PartialEq for DmaBufError
impl PartialEq for DmaBufError
Source§fn eq(&self, other: &DmaBufError) -> bool
fn eq(&self, other: &DmaBufError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DmaBufError
impl Eq 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 UnsafeUnpin 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