[−][src]Trait inject::provider::Provider
Value provider.
Associated Types
type ProvidedType: 'static
Required methods
fn provide(
&self,
container: &Container
) -> Result<Self::ProvidedType, InjectError>
&self,
container: &Container
) -> Result<Self::ProvidedType, InjectError>
Provides the value using the Container
Provided methods
Loading content...Implementations on Foreign Types
impl<T: ?Sized + 'static> Provider for Arc<T>
[src]
type ProvidedType = Self
fn provide(
&self,
container: &Container
) -> Result<Self::ProvidedType, InjectError>
[src]
&self,
container: &Container
) -> Result<Self::ProvidedType, InjectError>
Implementors
impl<F, T: Inject> Provider for F where
F: Fn(&Container) -> Result<T, InjectError>,
[src]
F: Fn(&Container) -> Result<T, InjectError>,
type ProvidedType = T
fn provide(
&self,
container: &Container
) -> Result<Self::ProvidedType, InjectError>
[src]
&self,
container: &Container
) -> Result<Self::ProvidedType, InjectError>