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)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DmaBufError
Source§impl Debug for DmaBufError
impl Debug for DmaBufError
Source§impl Display for DmaBufError
impl Display for DmaBufError
impl Eq for DmaBufError
Source§impl Error for DmaBufError
impl Error for DmaBufError
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
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 From<DmaBufError> for MmcError
impl From<DmaBufError> for MmcError
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 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§
§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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)