embassy-sync

Crates

git

Versions

default

Flavors

Skip to main content

RawMutex

Trait RawMutex 

Source
pub trait RawMutex: ScopedRawMutex + ConstInit { }
Expand description

Raw mutex trait.

This mutex is “raw”, which means it does not actually contain the protected data, it just implements the mutex mechanism. For most uses you should use super::Mutex instead, which is generic over a RawMutex and contains the protected data.

This trait is implemented for every type that implements ScopedRawMutex and ConstInit. Implement those traits, not this one.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§