Expand description
Stub module contains types for stubs for non-std environments and for std environments.
Structs§
- Arc
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Mutex
- A mutual exclusion primitive useful for protecting shared data
- RwLock
- A reader-writer lock which is exclusively locked for writing or shared for reading.
This reader-writer lock will block threads waiting for the lock to become available.
The lock can also be statically initialized or created via a RwLock::new
RwLock wrapper to make
spin::RwLockAPI compatible withstd::sync::RwLockto swap - RwLock
Read Guard - RAII structure used to release the shared read access of a lock when dropped.
- RwLock
Write Guard - RAII structure used to release the exclusive write access of a lock when dropped.
- Sync
Once Cell - A cell that provides lazy one-time initialization that implements Sync and Send.
- Thread
Id - A unique identifier for a running thread.