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 copy of the value. Read more
1.0.0§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 Format for DmaBufErrorwhere
DmaAlignmentError: Format,
impl Format for DmaBufErrorwhere
DmaAlignmentError: Format,
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
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 UnwindSafe for DmaBufError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)