Skip to main content

AllowedIn

Trait AllowedIn 

Source
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§

Source§

impl<X: AllowedIn<S>, S: Scope> AllowedIn<S> for Option<X>

Implementors§

Source§

impl AllowedIn<Auto> for ExecutionRef

Source§

impl AllowedIn<PerExecution> for ExecutionRef

Source§

impl AllowedIn<Transient> for ExecutionRef

Source§

impl<S: Scope> AllowedIn<S> for ModuleRef

Source§

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.

Source§

impl<T: ?Sized, Q, S: Scope> AllowedIn<S> for Many<T, Q>

Source§

impl<T> AllowedIn<Auto> for Ext<T>

Source§

impl<T> AllowedIn<PerExecution> for Ext<T>

Source§

impl<T> AllowedIn<Transient> for Ext<T>