[][src]Module ref_portals::sync

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 to Sync 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().

WeakPortal
WeakRwPortal
WeakWPortal