Expand description
Single-threaded anchors and portals.
These don’t implement Send
or Sync
, but are more efficient for use cases where that’s not needed.
Structs§
- Anchor
- An
!Send
immutable anchor.
Use this to capture shared references in a single-threaded environment. - Portal
- An
!Send
immutable portal.
Dereference it directly with*
or.deref()
. - RwAnchor
- An
!Send
mutable anchor with overlapping immutable borrows. Use this to capture mutable references in a single-threaded environment. - RwPortal
- An
!Send
mutable portal with overlapping immutable borrows.
Acquire a guard by calling.borrow()
or.borrow_mut()
. - Weak
Portal - Weak
RwPortal