pub struct DmaSliceRegion<T: DeviceSync> { /* private fields */ }
Expand description
A region of DMA memory, represented in virtual memory as type [T; len]
, with a particular
access mode and options.
Implementations§
source§impl<'a, T: DeviceSync> DmaSliceRegion<T>
impl<'a, T: DeviceSync> DmaSliceRegion<T>
pub fn pin(&mut self) -> Result<DmaPin<'_>, PinError>
pub fn sync(&self, range: Range<usize>, sync: SyncMode)
pub fn with<F, R>(&self, range: Range<usize>, f: F) -> R
pub fn with_mut<F, R>(&mut self, range: Range<usize>, 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.
Auto Trait Implementations§
impl<T> !DeviceSync for DmaSliceRegion<T>
impl<T> Freeze for DmaSliceRegion<T>
impl<T> !ObjSafe for DmaSliceRegion<T>
impl<T> RefUnwindSafe for DmaSliceRegion<T>where
T: RefUnwindSafe,
impl<T> !Send for DmaSliceRegion<T>
impl<T> !Sync for DmaSliceRegion<T>
impl<T> Unpin for DmaSliceRegion<T>where
T: Unpin,
impl<T> UnwindSafe for DmaSliceRegion<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