pub struct AtomicCell<BUS> { /* private fields */ }
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