pub struct Dma<T: ?Sized> { /* private fields */ }
Implementations
sourceimpl<T> Dma<T>
impl<T> Dma<T>
pub fn from_physbox_uninit(phys: PhysBox) -> Result<Dma<MaybeUninit<T>>>
pub fn from_physbox_zeroed(phys: PhysBox) -> Result<Dma<MaybeUninit<T>>>
pub fn from_physbox(phys: PhysBox, value: T) -> Result<Self>
pub fn new(value: T) -> Result<Self>
pub fn zeroed() -> Result<Dma<MaybeUninit<T>>>
sourceimpl<T> Dma<MaybeUninit<T>>
impl<T> Dma<MaybeUninit<T>>
pub unsafe fn assume_init(self) -> Dma<T>
sourceimpl<T> Dma<[T]>
impl<T> Dma<[T]>
pub fn from_physbox_uninit_unsized(
phys: PhysBox,
len: usize
) -> Result<Dma<[MaybeUninit<T>]>>
pub fn from_physbox_zeroed_unsized(
phys: PhysBox,
len: usize
) -> Result<Dma<[MaybeUninit<T>]>>
sourcepub unsafe fn zeroed_unsized(count: usize) -> Result<Self>
pub unsafe fn zeroed_unsized(count: usize) -> Result<Self>
Creates a new DMA buffer with a size only known at runtime.
Safety
T
must be properly aligned.T
must be valid as zeroed (i.e. no NonNull pointers).
sourceimpl<T> Dma<[MaybeUninit<T>]>
impl<T> Dma<[MaybeUninit<T>]>
pub unsafe fn assume_init(self) -> Dma<[T]>
Trait Implementations
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Dma<T> where
T: RefUnwindSafe,
impl<T> !Send for Dma<T>
impl<T> !Sync for Dma<T>
impl<T: ?Sized> Unpin for Dma<T>
impl<T: ?Sized> UnwindSafe for Dma<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more