Registry / utility / mutex-trait

mutex-trait

JSON →
library0.2.0rscratesunverified

Foundational mutex trait and helpers for embedded systems.

# Cargo.toml [dependencies] mutex-trait = "0.2.0"
INSTALL
IMPORT
SIG · MUTEX-TRAIT
M
mutex-trait
utilityrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mutex
use mutex_trait::Mutex;

Locks a mutex and accesses the inner value.

use mutex_trait::Mutex; fn main() { let mutex = Mutex::new(42); let value = mutex.lock(|v| *v); println!("Value: {}", value); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mutex-trait — cargo add mutex-trait · libregistry