pub struct DmaMapHandle { /* private fields */ }Implementations§
Source§impl DmaMapHandle
impl DmaMapHandle
Sourcepub unsafe fn new(
cpu_addr: NonNull<u8>,
dma_addr: DmaAddr,
layout: Layout,
bounce_ptr: Option<NonNull<u8>>,
) -> Self
pub unsafe fn new( cpu_addr: NonNull<u8>, dma_addr: DmaAddr, layout: Layout, bounce_ptr: Option<NonNull<u8>>, ) -> Self
§Safety
cpu_addr must point to the caller-owned mapped buffer for the mapping
lifetime. bounce_ptr, when present, must point to a live bounce buffer
described by layout.
pub fn size(&self) -> usize
pub fn align(&self) -> usize
pub fn as_ptr(&self) -> NonNull<u8>
pub fn dma_addr(&self) -> DmaAddr
pub fn layout(&self) -> Layout
pub fn bounce_ptr(&self) -> Option<NonNull<u8>>
Trait Implementations§
Source§impl Clone for DmaMapHandle
impl Clone for DmaMapHandle
Source§fn clone(&self) -> DmaMapHandle
fn clone(&self) -> DmaMapHandle
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 moreimpl Copy for DmaMapHandle
Source§impl Debug for DmaMapHandle
impl Debug for DmaMapHandle
impl Eq for DmaMapHandle
Source§impl Hash for DmaMapHandle
impl Hash for DmaMapHandle
Source§impl PartialEq for DmaMapHandle
impl PartialEq for DmaMapHandle
Source§fn eq(&self, other: &DmaMapHandle) -> bool
fn eq(&self, other: &DmaMapHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DmaMapHandle
Auto Trait Implementations§
impl !Send for DmaMapHandle
impl !Sync for DmaMapHandle
impl Freeze for DmaMapHandle
impl RefUnwindSafe for DmaMapHandle
impl Unpin for DmaMapHandle
impl UnsafeUnpin for DmaMapHandle
impl UnwindSafe for DmaMapHandle
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