Module stub

Source
Expand description

Stub module contains types for stubs for non-std environments and for std environments.

Structsยง

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::RwLock API compatible with std::sync::RwLock to swap
SyncOnceCell
A cell that provides lazy one-time initialization that implements Sync and Send.
ThreadId
A unique identifier for a running thread.