pub trait Provider<T>: Send + Sync {
// Required method
fn provide(&self) -> HexResult<T>;
}Expand description
Provider for creating service instances
Implementors define how to construct instances of type T,
potentially using other services from the container.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".