Skip to main content

RouterTransform

Type Alias RouterTransform 

Source
pub type RouterTransform = Box<dyn FnOnce(Router<()>) -> Router<()>>;
Expand description

A boxed, infallible router transformation.

Used with RouterPipeline::layer_all to apply a dynamic collection of transforms (e.g., middleware layers) to the pipeline.

Aliased Typeยง

pub struct RouterTransform(/* private fields */);