Struct shared_bus::NullMutex
source · pub struct NullMutex<T> { /* private fields */ }
Expand description
“Dummy” mutex for sharing in a single task/thread.
This mutex type can be used when all bus users are contained in a single execution context. In such a situation, no actual mutex is needed, because a RefCell alone is sufficient to ensuring only a single peripheral can access the bus at the same time.
This mutex type is used with the BusManagerSimple
type.
To uphold safety, this type is !Send
and !Sync
.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for NullMutex<T>
impl<T> Send for NullMutex<T>where
T: Send,
impl<T> !Sync for NullMutex<T>
impl<T> Unpin for NullMutex<T>where
T: Unpin,
impl<T> UnwindSafe for NullMutex<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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