Crate dfdi

Source

Structs§

Cached
Cached provider
CachedService
Cached service
Context
A context in which to store providers for services

Enums§

BindError
Error while binding a service
UnbindError
Error while unbinding a service

Traits§

Provider
A can construct a Service which references objects either inside itself or the provided Context.
Service
A key to an object that can be created by a Provider and stored in a Context.

Functions§

provider_fn
Type hint to the rust compiler to treat appropriately typed closures as providers.

Derive Macros§

Service
Create an implementation of Service on a 'static version of the original type.