Crate shaku_axum
source ·Expand description
This crate provides integration between the shaku
and axum
crates.
See Inject
and InjectProvided
for details.
Structs
- Used to retrieve a reference to a component from a shaku
Module
. The module should be stored in Axum state, wrapped in anArc
(Arc<MyModule>
). ThisArc<MyModule>
must implementFromRef<S>
whereS
is the Axum state type. - Used to create a provided service from a shaku
Module
. The module should be stored in Axum state, wrapped in anArc
(Arc<MyModule>
). ThisArc<MyModule>
must implementFromRef<S>
whereS
is the Axum state type.