axum::middleware

Function from_extractor_with_state

Source
pub fn from_extractor_with_state<E, S>(state: S) -> FromExtractorLayer<E, S>
Expand description

Create a middleware from an extractor with the given state.

See State for more details about accessing state.