pub struct DeviceRead<'a, T: Copy, const N: usize> { /* private fields */ }Expand description
One-shot DMA-read typestate handle.
While alive, the CPU MUST NOT access the buffer. Drop or
DeviceRead::complete returns the buffer to Cpu state with
no exit cache op (the device only read RAM; the CPU’s cached copy
is unchanged from before the transfer).
Implementations§
Source§impl<'a, T: Copy, const N: usize> DeviceRead<'a, T, N>
impl<'a, T: Copy, const N: usize> DeviceRead<'a, T, N>
Auto Trait Implementations§
impl<'a, T, const N: usize> !RefUnwindSafe for DeviceRead<'a, T, N>
impl<'a, T, const N: usize> !UnwindSafe for DeviceRead<'a, T, N>
impl<'a, T, const N: usize> Freeze for DeviceRead<'a, T, N>
impl<'a, T, const N: usize> Send for DeviceRead<'a, T, N>where
T: Send,
impl<'a, T, const N: usize> Sync for DeviceRead<'a, T, N>where
T: Send,
impl<'a, T, const N: usize> Unpin for DeviceRead<'a, T, N>
impl<'a, T, const N: usize> UnsafeUnpin for DeviceRead<'a, T, N>
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