Registry / utility / vcell
library0.1.3rscratesunverified

A `Cell` with volatile read/write operations, useful for memory-mapped I/O or hardware registers.

# Cargo.toml [dependencies] vcell = "0.1.3"
INSTALL
IMPORT
SIG · VCELL
V
vcell
utilityrustv0.1.3
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.

VolatileCell
✓ use vcell::VolatileCell;

Creates a VolatileCell and reads its value using volatile access.

use vcell::VolatileCell; fn main() { let v = VolatileCell::new(42u32); println!("Value: {}", v.get()); }
Debug
Known issues
gotchaVolatileCell does not provide synchronization; use with care in concurrent contexts.
fix
For shared mutable access across threads, consider using atomic types or Mutex instead.
affects: >=0.1.0
Upgrade
Version history
0.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Amazon
1
Resources
vcell — cargo add vcell · libregistry