Trait viz_core::Transform

source ·
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::Config
where H: Clone,

Available on crate feature compression only.
source§

impl<H> Transform<H> for viz_core::middleware::cookie::Config
where 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::Config
where H: Clone,

Available on crate feature limits only.
source§

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

Available on crate features params and otel and otel-metrics 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 params and otel and otel-tracing only.
source§

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

Available on crate feature state only.