pub struct DmaRegion<T: DeviceSync> { /* private fields */ }
Expand description
A region of DMA memory, represented in virtual memory as type T
, with a particular access mode
and options.
Implementations§
source§impl<'a, T: DeviceSync> DmaRegion<T>
impl<'a, T: DeviceSync> DmaRegion<T>
pub fn pin(&mut self) -> Result<DmaPin<'_>, PinError>
pub fn sync(&self, sync: SyncMode)
pub fn with<F, R>(&self, f: F) -> R
pub fn with_mut<F, R>(&mut self, f: F) -> R
sourcepub unsafe fn release_pin(&mut self)
pub unsafe fn release_pin(&mut self)
Release any pin created for this region.
§Safety
Caller must ensure that no device is using the information from any active pins for this region.
Trait Implementations§
Auto Trait Implementations§
impl<T> !DeviceSync for DmaRegion<T>
impl<T> Freeze for DmaRegion<T>
impl<T> !ObjSafe for DmaRegion<T>
impl<T> RefUnwindSafe for DmaRegion<T>where
T: RefUnwindSafe,
impl<T> !Send for DmaRegion<T>
impl<T> !Sync for DmaRegion<T>
impl<T> Unpin for DmaRegion<T>where
T: Unpin,
impl<T> UnwindSafe for DmaRegion<T>where
T: UnwindSafe,
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