Trait SvcExt

Source
pub trait SvcExt<Req>: Svc<Req> {
    // Provided methods
    fn map<F, Res>(self, f: F) -> MapSvc<Self, F, Res>
       where Self: Sized,
             F: FnMut(Self::Res) -> Res { ... }
    fn then<S2, Res>(self, svc2: S2) -> ThenSvc<Self, S2, Self::Res, Res>
       where Self: Sized,
             S2: Svc<Self::Res, Res = Res> { ... }
    fn boxed(self) -> BoxSvc<Req, Self::Res>
       where Self: Sized + 'static,
             Req: 'static { ... }
}

Provided Methods§

Source

fn map<F, Res>(self, f: F) -> MapSvc<Self, F, Res>
where Self: Sized, F: FnMut(Self::Res) -> Res,

Source

fn then<S2, Res>(self, svc2: S2) -> ThenSvc<Self, S2, Self::Res, Res>
where Self: Sized, S2: Svc<Self::Res, Res = Res>,

Source

fn boxed(self) -> BoxSvc<Req, Self::Res>
where Self: Sized + 'static, Req: 'static,

Implementors§