pub trait AllowedIn<S: Scope> { }Expand description
Implemented per injection-point type and scope: a type that needs an execution is not
AllowedIn Singleton. #[injectable] asserts it once per field or parameter, so the error
points at that field or parameter. {Self} is the injection point’s type; the type that
cannot read it is the one declared {S}.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<X: AllowedIn<S>, S: Scope> AllowedIn<S> for Option<X>
Implementors§
impl AllowedIn<Auto> for ExecutionRef
impl AllowedIn<PerExecution> for ExecutionRef
impl AllowedIn<Transient> for ExecutionRef
impl<S: Scope> AllowedIn<S> for ModuleRef
impl<T: ?Sized, Q, S: Scope> AllowedIn<S> for Dep<T, Q>
Whether the binding behind a Dep needs an execution is decided at wire(), not here.