[][src]Struct tarpc_lib::client::MapResponse

pub struct MapResponse<C, F> { /* fields omitted */ }

A Client that applies a function to the returned response.

Trait Implementations

impl<'a, C, F, Req, Resp, Resp2> Client<'a, Req> for MapResponse<C, F> where
    C: Client<'a, Req, Response = Resp>,
    F: FnMut(Resp) -> Resp2 + 'a, 
[src]

type Response = Resp2

The response type.

type Future = MapOk<<C as Client<'a, Req>>::Future, &'a mut F>

The future response.

impl<C: Clone, F: Clone> Clone for MapResponse<C, F>[src]

impl<C: Debug, F: Debug> Debug for MapResponse<C, F>[src]

Auto Trait Implementations

impl<C, F> Send for MapResponse<C, F> where
    C: Send,
    F: Send

impl<C, F> Unpin for MapResponse<C, F> where
    C: Unpin,
    F: Unpin

impl<C, F> Sync for MapResponse<C, F> where
    C: Sync,
    F: Sync

impl<C, F> UnwindSafe for MapResponse<C, F> where
    C: UnwindSafe,
    F: UnwindSafe

impl<C, F> RefUnwindSafe for MapResponse<C, F> where
    C: RefUnwindSafe,
    F: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,