[][src]Struct tarpc::rpc::server::ClientHandler

pub struct ClientHandler<C, S> where
    C: Channel
{ /* fields omitted */ }

A running handler serving all requests coming over a channel.

Implementations

impl<C, S> ClientHandler<C, S> where
    C: Channel,
    S: Serve<C::Req, Resp = C::Resp>, 
[src]

pub fn get_pin_channel(self: Pin<&mut Self>) -> Pin<&mut C>[src]

Returns the inner channel over which messages are sent and received.

impl<C, S> ClientHandler<C, S> where
    C: Channel + 'static,
    C::Req: Send + 'static,
    C::Resp: Send + 'static,
    S: Serve<C::Req, Resp = C::Resp> + Send + 'static,
    S::Fut: Send + 'static, 
[src]

pub fn execute(self) -> impl Future<Output = ()>[src]

This is supported on crate feature tokio1 only.

Runs the client handler until completion by spawning each request handler onto the default executor.

Trait Implementations

impl<C, S> Debug for ClientHandler<C, S> where
    C: Channel
[src]

impl<C, S> Stream for ClientHandler<C, S> where
    C: Channel,
    S: Serve<C::Req, Resp = C::Resp>, 
[src]

type Item = Result<RequestHandler<S::Fut, C::Resp>>

Values yielded by the stream.

impl<'pin, C, S> Unpin for ClientHandler<C, S> where
    C: Channel,
    __ClientHandler<'pin, C, S>: Unpin
[src]

Auto Trait Implementations

impl<C, S> !RefUnwindSafe for ClientHandler<C, S>[src]

impl<C, S> Send for ClientHandler<C, S> where
    C: Send,
    S: Send,
    <C as Channel>::Resp: Send
[src]

impl<C, S> Sync for ClientHandler<C, S> where
    C: Sync,
    S: Sync,
    <C as Channel>::Resp: Send
[src]

impl<C, S> !UnwindSafe for ClientHandler<C, S>[src]

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<S, C> Handler<C> for S where
    C: Channel,
    S: Stream<Item = C>, 
[src]

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

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<St> StreamExt for St where
    St: Stream + ?Sized
[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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

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