Trait viz::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::middleware::compression::Config
where H: Clone,

source§

impl<H> Transform<H> for viz::middleware::cookie::Config
where H: Clone,

source§

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

source§

impl<H> Transform<H> for viz::middleware::limits::Config
where H: Clone,

source§

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

source§

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

§

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

source§

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

§

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

source§

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

source§

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