Expand description
Impl-level shared values (transports DESIGN §2.1, X2).
A controller-level value = expr is built once, in the Handlers::mount #[handlers]
generates, into an Arc, and every handler’s mount function receives the same
::ulo::__private::Shared((Arc<V0>, Arc<V1>, ..)). #[handlers] cannot name a value’s type, so
each Vi is a type parameter of the mount function, inferred at its call. The position of a
value entry, in the order written across the impl’s three enhancer attributes and counting
entries scoped to other transports, is part of the __handler contract: shared_values
computes it the same way in #[handlers] and in every transport attribute.
Structs§
- Shared
Value - One controller-level
valueentry.
Functions§
- construct
- What
Handlers::mountevaluates once:::ulo::__private::Shared((Arc::new(e0), ..,)), orShared(())with no value. - mount_
generics - The mount function’s generic parameters and the type of its
sharedparameter for a handler of the transportkey:<__UloV0: ::ulo::Guard<Marker>, __UloV1>and&::ulo::__private::Shared<(Arc<__UloV0>, Arc<__UloV1>,)>. A value that applies to this transport is bounded by its role, spanned at the handler’s name, so a value lacking the role fails E0277 atHandlers::mount’s call of this handler’s mount function. - shared_
ident __ulo_shared, the mount function’s parameter andHandlers::mount’s local.- shared_
values - The controller tier’s
valueentries, in order. - type_
param __UloV<index>, the mount function’s type parameter for valueindex.