pub enum DmaError {
NoMemory,
LayoutError(LayoutError),
DmaMaskNotMatch {
addr: DmaAddr,
mask: u64,
},
AlignMismatch {
required: usize,
address: DmaAddr,
},
NullPointer,
ZeroSizedBuffer,
}Expand description
DMA 错误类型
Variants§
Trait Implementations§
Source§impl Error for DmaError
impl Error for DmaError
Source§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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<LayoutError> for DmaError
impl From<LayoutError> for DmaError
Source§fn from(source: LayoutError) -> Self
fn from(source: LayoutError) -> Self
Converts to this type from the input type.
impl Eq for DmaError
impl StructuralPartialEq for DmaError
Auto Trait Implementations§
impl Freeze for DmaError
impl RefUnwindSafe for DmaError
impl Send for DmaError
impl Sync for DmaError
impl Unpin for DmaError
impl UnwindSafe for DmaError
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