Struct tarpc::rpc::client::WithRequest [−][src]
A Client that applies a pre-processing function to the request.
Trait Implementations
impl<'a, C, F, Req, Req2, Resp> Client<'a, Req2> for WithRequest<C, F> where
C: Client<'a, Req, Response = Resp>,
F: FnMut(Req2) -> Req,
[src]
C: Client<'a, Req, Response = Resp>,
F: FnMut(Req2) -> Req,
type Response = Resp
The response type.
type Future = <C as Client<'a, Req>>::Future
The future response.
fn call(&'a mut self, ctx: Context, request: Req2) -> Self::Future
[src]
fn map_response<F, R>(self, f: F) -> MapResponse<Self, F> where
F: FnMut(Self::Response) -> R,
Self: Sized,
[src]
F: FnMut(Self::Response) -> R,
Self: Sized,
fn with_request<F, Req2>(self, f: F) -> WithRequest<Self, F> where
F: FnMut(Req2) -> Req,
Self: Sized,
[src]
F: FnMut(Req2) -> Req,
Self: Sized,
impl<C: Clone, F: Clone> Clone for WithRequest<C, F>
[src]
fn clone(&self) -> WithRequest<C, F>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug, F: Debug> Debug for WithRequest<C, F>
[src]
Auto Trait Implementations
impl<C, F> RefUnwindSafe for WithRequest<C, F> where
C: RefUnwindSafe,
F: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<C, F> Send for WithRequest<C, F> where
C: Send,
F: Send,
C: Send,
F: Send,
impl<C, F> Sync for WithRequest<C, F> where
C: Sync,
F: Sync,
C: Sync,
F: Sync,
impl<C, F> Unpin for WithRequest<C, F> where
C: Unpin,
F: Unpin,
C: Unpin,
F: Unpin,
impl<C, F> UnwindSafe for WithRequest<C, F> where
C: UnwindSafe,
F: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,