Expand description
Mutex primitives.
This module provides a trait for mutexes that can be used in different contexts.
The traits come from the mutex-traits crate. Implement
ScopedRawMutex and ConstInit for a type to use it with embassy-sync.
Structs§
- Critical
Section RawMutex - A mutex that allows borrowing data across executors and interrupts.
- Noop
RawMutex - A mutex that allows borrowing data in the context of a single executor.
- Panic
RawMutex - A mutex that panics if locked from multiple contexts.
Traits§
- Const
Init - Const Init Trait
- RawMutex
- Raw mutex trait.
- Scoped
RawMutex - Raw scoped mutex trait.