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§
Source§impl<T: DeviceSync> Debug for DmaRegion<T>
impl<T: DeviceSync> Debug for DmaRegion<T>
Source§impl<'a, T: DeviceSync> Drop for DmaRegion<T>
impl<'a, T: DeviceSync> Drop for DmaRegion<T>
impl<T: DeviceSync> Send for DmaRegion<T>
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> StoreCopy for DmaRegion<T>where
T: StoreCopy,
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