runtime_injector
runtime_injector copied to clipboard
Improve ergonomics
- Relaxed constraints for
ServiceFactory
- Moved
Service
constraint to the provider implementations - Result only constrained by
Any
rather thanService
- Moved
-
ServiceFactory::invoke
now takes&self
, meaning it doesn't need to be locked to be used in a thread-safe manner- Implemented on
Fn
rather thanFnMut
now - Neither
FallibleServiceFactory
nor theFn
(previouslyFnMut
) implementations need&mut self
- Implemented on