pub trait Injectable:
Sized
+ Send
+ Sync
+ 'static {
// Required method
fn construct(r: Resolver) -> BoxFuture<'static, Result<Self, KernelError>>;
// Provided methods
fn scope() -> Scope { ... }
fn dependencies() -> Vec<ProviderKey> { ... }
}Expand description
A type the container can construct (what #[injectable] implements).
Required Methods§
Provided Methods§
Sourcefn dependencies() -> Vec<ProviderKey>
fn dependencies() -> Vec<ProviderKey>
The keys construct resolves, used by the boot-time graph check.
Keys resolved through Lazy are left out.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".