pub enum SharedBridge {
Total,
Fallible,
Hook(Path),
FallibleHook(Path),
}Expand description
THE BRIDGE a broadcast seat crosses to reach one arm’s question — the word inside shared.
A CLOSED framework vocabulary, because what it names is which of two conversions the emission demands and which of two shapes a hook has. The types on either side are the application’s and stay open; the crossing is the framework’s.
The variants are NOT called From and TryFrom, and the reason is measured rather than stylistic
— see the runtime record’s own Bridge, whose note carries the six goldens that moved on that
word. One vocabulary across the two crates, so the reason lands once and the names never diverge.
Variants§
Total
shared — the crossing that cannot fail, demanded as From.
Fallible
shared(try) — the crossing that can, demanded as TryFrom, whose failure surfaces through
the member’s own refusal variant.
Hook(Path)
shared(with = "path::to::hook") — a function of the author’s, taking the seat and answering
this arm’s question.
HOOKS BEAT TRAITS: a crossing an application wrote is not obliged to be expressible as an impl it is allowed to write, the orphan rule being what it is.
FallibleHook(Path)
shared(try_with = "path::to::hook") — the fallible hook, Hook’s twin.