Expand description
Integration with the axum
web framework.
Provides the Dep
and Obtain
axum extractors for easily accessing
resources from within route handlers.
To make use of these extractors, your application state must either be
an Aero
, or you must implement FromRef<YourState>
for Aero
.
Structs§
- Get an already-existing resource from the state. Equivalent to calling
Aero::try_get_async
. - Get a resource from the state, or construct it if it doesn’t exist. Equivalent to calling
Aero::try_obtain_async
.
Enums§
- Type of axum Rejection returned when a resource cannot be acquired