Expand description
The binding-handle typestate: the state markers Handle’s parameters take and the traits
that decide which methods exist in each state (§9.1). Also the marks on Contribute’s last
parameter: Plain on the builder contribute returns, Enhancer on the one enhancer
returns, which has no qualified.
Structs§
- Binding
- The single binding as an item: scope
S, construction boundB. - Contribution
- A collection contribution as an item: scope
S, construction boundB. It has noalso_asorqualified: a contribution is not reachable under a key of its own. - Handle
- What
provide,value, the factory methods and thecontributebuilder return: a handle on the binding registered by that call, through which its second keys, qualifier, construction bound, readiness check and closure hooks are written. - Hook
Item - A closure hook as an item, with its bound
B. - Ready
Item - A readiness check as an item: the whole-check bound
Wand the one-attempt boundA.
Enums§
- Enhancer
- The mark of the builder
ModuleDef::enhancerreturns. It has noqualified: a transport reads only a role key’s unqualified collection, so a qualified enhancer would be read by nothing. - Open
- A bound not yet written:
.timeout(..)and.unbounded()exist. - Plain
- The mark of the builder
ModuleDef::contributereturns. - Set
- A bound written: neither
.timeout(..)nor.unbounded()exists.
Traits§
- Attempt
Timeout .attempt_timeout(..): the readiness check’s one-attempt bound, written once.- Hook
Host - The binding states whose handle carries closure hooks and a readiness check: a singleton or
an
Autobinding, which includes a contribution registered throughContribute::with. Hooks on anAutobinding that the wiring pass infers per-execution are refused atwire(). - Single
Binding - The binding states
also_asandqualifiedreturn to: a single binding. - Timeout
.timeout(..)on an item whose bound is open: the item’s next state, and the binding’s.- Unbounded
.unbounded()on an item whose bound is open. On a readiness check it exists only while both of its bounds are open, and it closes both.