Expand description
Theadsafe anchors and portals.
These (but not their guards) are various degrees of Send
and Sync
depending on their type parameter.
Structsยง
- Anchor
- A threadsafe immutable anchor with concurrent read access.
Use this to capture immutable references in a threaded environment. - Portal
- A threadsafe immutable portal.
Dereference it directly with*
or.deref()
. - RwAnchor
- A threadsafe mutable anchor with concurrent read access.
Use this to capture mutable references toSync
types in a threaded environment. - RwPortal
- A threadsafe mutable portal supporting concurred reads.
Acquire a guard by calling.read()
or.write()
. - WAnchor
- A threadsafe mutable anchor with concurrent read access.
Use this to capture mutable references to!Sync
types in a threaded environment. - WPortal
- A threadsafe mutable portal with only exclusive access.
Acquire a guard by calling.lock()
. - Weak
Portal - Weak
RwPortal - WeakW
Portal