pub trait Build:
Clone
+ Send
+ Sync
+ 'static {
// Required method
fn build(state: &State) -> Result<Self, DependencyInjectionError>
where Self: Sized;
}Expand description
Base trait for any component that can be constructed from the application State.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".