actix_service

Trait TransformExt

Source
pub trait TransformExt<S, Req>: Transform<S, Req> {
    // Provided method
    fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, Req, F, E>
       where Self: Sized,
             F: Fn(Self::InitError) -> E + Clone { ... }
}
Expand description

An extension trait for Transforms that provides a variety of convenient adapters.

Provided Methods§

Source

fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, Req, F, E>
where Self: Sized, F: Fn(Self::InitError) -> E + Clone,

Return a new Transform whose init error is mapped to to a different type.

Implementors§

Source§

impl<T, Req> TransformExt<T, Req> for T
where T: Transform<T, Req>,