Re-exported from core::cap.
Branded access capabilities: one exclusive writer or a tree of shared readers.
Re-exports
Brand | Re-export of a builtin. |
fresh | Re-export of a builtin. |
static_brand | Re-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]. |
Stamp | A domain's brand, sealed so that only core can read it. |
Traits
Access | A 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
Instance declarations
forall 'k.
instance Access[Exclusive!['k] -> 'k, ()] { ... }
An Exclusive! lends itself, with nothing else held.