pub trait FromState: Sized {
// Required method
fn from_state(state: &State) -> Result<Self, DependencyInjectionError>;
}Required Methods§
fn from_state(state: &State) -> Result<Self, DependencyInjectionError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".