pub trait Transform<H> {
    type Output;

    // Required method
    fn transform(&self, h: H) -> Self::Output;
}
Expand description

Then Transform trait defines the interface of a handler factory that wraps inner handler to a Handler during construction.

Required Associated Types§

source

type Output

A new handler.

Required Methods§

source

fn transform(&self, h: H) -> Self::Output

Transforms self and wraps Handler to a new handler.

Implementors§

source§

impl<H> Transform<H> for viz_core::middleware::compression::Configwhere H: Clone,

Available on crate feature compression only.
source§

impl<H> Transform<H> for viz_core::middleware::cookie::Configwhere H: Clone,

Available on crate feature cookie only.
source§

impl<H> Transform<H> for viz_core::middleware::cors::Config

Available on crate feature cors only.
source§

impl<H> Transform<H> for viz_core::middleware::limits::Configwhere H: Clone,

Available on crate feature limits only.
source§

impl<H> Transform<H> for viz_core::middleware::otel::metrics::Config

Available on crate features otel-metrics and otel only.
source§

impl<H, S, G, V> Transform<H> for viz_core::middleware::csrf::Config<S, G, V>

Available on crate feature csrf only.
§

type Output = CsrfMiddleware<H, S, G, V>

source§

impl<H, S, G, V> Transform<H> for viz_core::middleware::session::Config<S, G, V>

Available on crate feature session only.
§

type Output = SessionMiddleware<H, S, G, V>

source§

impl<H, T> Transform<H> for viz_core::middleware::otel::tracing::Config<T>

Available on crate features otel-tracing and otel only.
source§

impl<H, T> Transform<H> for State<T>where T: Clone + Send + Sync + 'static,

Available on crate feature state only.