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
!Sendimmutable anchor.
Use this to capture shared references in a single-threaded environment. - Portal
- An
!Sendimmutable portal.
Dereference it directly with*or.deref(). - RwAnchor
- An
!Sendmutable anchor with overlapping immutable borrows. Use this to capture mutable references in a single-threaded environment. - RwPortal
- An
!Sendmutable portal with overlapping immutable borrows.
Acquire a guard by calling.borrow()or.borrow_mut(). - Weak
Portal - Weak
RwPortal