embassy-sync

Crates

git

Versions

default

Flavors

Skip to main content

PanicMutex

Type Alias PanicMutex 

Source
pub type PanicMutex<T> = Mutex<PanicRawMutex, T>;
Expand description

A mutex that panics if locked from multiple contexts.

§Safety

This mutex is safe to share between different executors and interrupts.

Aliased Type§

pub struct PanicMutex<T> { /* private fields */ }