[][src]Struct async_svc::MapSvc

pub struct MapSvc<S, F, Res> { /* fields omitted */ }

Implementations

impl<S, F, Res> MapSvc<S, F, Res>[src]

pub fn new(svc: S, mapper: F) -> Self[src]

Trait Implementations

impl<S, Req, F, Res> Svc<Req> for MapSvc<S, F, Res> where
    S: Svc<Req>,
    F: FnMut(S::Res) -> Res + Clone
[src]

type Res = Res

Output type.

type Fut = MapSvcFut<S, F, Req, Res>

Response future.

impl<'pin, S, F, Res> Unpin for MapSvc<S, F, Res> where
    __MapSvc<'pin, S, F, Res>: Unpin
[src]

Auto Trait Implementations

impl<S, F, Res> RefUnwindSafe for MapSvc<S, F, Res> where
    F: RefUnwindSafe,
    Res: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, F, Res> Send for MapSvc<S, F, Res> where
    F: Send,
    Res: Send,
    S: Send

impl<S, F, Res> Sync for MapSvc<S, F, Res> where
    F: Sync,
    Res: Sync,
    S: Sync

impl<S, F, Res> UnwindSafe for MapSvc<S, F, Res> where
    F: UnwindSafe,
    Res: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.