[][src]Trait async_svc::SvcExt

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

Provided methods

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

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

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

Loading content...

Implementors

Loading content...