Module

std::cap

source

Re-exported from core::cap.

Branded access capabilities: one exclusive writer or a tree of shared readers.

Re-exports

BrandRe-export of a builtin.
freshRe-export of a builtin.
static_brandRe-export of a builtin.

Types

Exclusive!The sole read and write capability for domain 'r.
Shared!A shared read capability for domain 'r: one node 'q of a tree of readers.
SharedJoin!The receipt a Shared!::split keeps back, which join turns the two children back into their parent.
SharedResume!The receipt Exclusive!::share keeps back, which resume turns the root of the shared tree back into the Exclusive!['r].
StampA domain's brand, sealed so that only core can read it.

Traits

AccessA context that lends the capability of domain 'k: the Exclusive!['k] itself, or a value holding it, such as an arena with its capability (alloc::arena::Domain!) or a program's own context.

Instances

Access[Exclusive!['k] -> 'k, ()]An Exclusive! lends itself, with nothing else held.

Instance declarations

instance Access[Exclusive!['k] -> 'k, ()]source

forall 'k.
instance Access[Exclusive!['k] -> 'k, ()] { ... }

An Exclusive! lends itself, with nothing else held.