embassy-sync

Crates

git

Versions

default

Flavors

Skip to main content

Module raw

Module raw 

Source
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§

CriticalSectionRawMutex
A mutex that allows borrowing data across executors and interrupts.
NoopRawMutex
A mutex that allows borrowing data in the context of a single executor.
PanicRawMutex
A mutex that panics if locked from multiple contexts.

Traits§

ConstInit
Const Init Trait
RawMutex
Raw mutex trait.
ScopedRawMutex
Raw scoped mutex trait.