pub struct AtomicCell<BUS> { /* private fields */ }Available on crate feature
portable-atomic or target_has_atomic=8 only.Expand description
Cell type used by spi::AtomicDevice and i2c::AtomicDevice.
To use AtomicDevice, you must wrap the bus with this struct, and then
construct multiple AtomicDevice instances with references to it.
Implementations§
Source§impl<BUS> AtomicCell<BUS>
impl<BUS> AtomicCell<BUS>
Trait Implementations§
impl<BUS: Send> Send for AtomicCell<BUS>
impl<BUS: Send> Sync for AtomicCell<BUS>
Auto Trait Implementations§
impl<BUS> !Freeze for AtomicCell<BUS>
impl<BUS> !RefUnwindSafe for AtomicCell<BUS>
impl<BUS> Unpin for AtomicCell<BUS>where
BUS: Unpin,
impl<BUS> UnwindSafe for AtomicCell<BUS>where
BUS: 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