pub trait Injectable<Input, Output, FnArgs> {
    fn inject<'a>(&'a self, container: &'a Input) -> CompiledFn<'a, Output>;
}
Expand description

Converts functions into CompiledFn.

The function must follow some rules, to be usable with DI:

  1. For each function parameter of type T, Input must satisfy DependencySupplier<T>.
  2. The function must be of 0-9 arguments.
  3. The function must return Future.

Required Methods

Implementors