Expand description
This crate provides integration between the shaku and rocket crates.
See Inject and InjectProvided for details.
Structs§
- Inject
- Used to retrieve a reference to a component from a shaku
Module. The module should be stored in Rocket’s state, in aBox(It could beBox<dyn MyModule>if the module implementation changes at runtime). Use thisInjectstruct as a request guard. - Inject
Provided - Used to create a provided service from a shaku
Module. The module should be stored in Rocket’s state, in aBox(It could beBox<dyn MyModule>if the module implementation changes at runtime). Use thisInjectProvidedstruct as a request guard.