Transform

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<H, T> Transform<H> for viz_smol::middleware::otel::tracing::Config<T>
where T: Clone,

Source§

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