pub trait FromContainer: Sized {
// Required method
fn from_container(container: &Container) -> Self;
}Expand description
Queue analog of #[injectable]’s from_container, expressed as a trait so
a backend can build any processor generically from the container.
Required Methods§
Sourcefn from_container(container: &Container) -> Self
fn from_container(container: &Container) -> Self
Build the processor by resolving its #[inject] dependencies.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".