pub struct VolatileCell<T: Copy> { /* private fields */ }Expand description
Volatile cell wrapper for DMA descriptor fields.
Prevents the compiler from reordering or caching register-like memory
accesses. All reads and writes go through core::ptr::{read,write}_volatile.
Implementations§
Source§impl<T: Copy> VolatileCell<T>
impl<T: Copy> VolatileCell<T>
Trait Implementations§
impl<T: Copy> Sync for VolatileCell<T>
Auto Trait Implementations§
impl<T> !Freeze for VolatileCell<T>
impl<T> !RefUnwindSafe for VolatileCell<T>
impl<T> Send for VolatileCell<T>where
T: Send,
impl<T> Unpin for VolatileCell<T>where
T: Unpin,
impl<T> UnsafeUnpin for VolatileCell<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for VolatileCell<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