[][src]Struct tarpc::rpc::client::NewClient

pub struct NewClient<C, D> {
    pub client: C,
    pub dispatch: D,
}

A channel and dispatch pair. The dispatch drives the sending and receiving of requests and must be polled continuously or spawned.

Fields

client: C

The new client.

dispatch: D

The client's dispatch.

Implementations

impl<C, D, E> NewClient<C, D> where
    D: Future<Output = Result<(), E>> + Send + 'static,
    E: Display
[src]

pub fn spawn(self) -> Result<C>[src]

This is supported on crate feature tokio1 only.

Helper method to spawn the dispatch on the default executor.

Trait Implementations

impl<C, D> Debug for NewClient<C, D>[src]

Auto Trait Implementations

impl<C, D> RefUnwindSafe for NewClient<C, D> where
    C: RefUnwindSafe,
    D: RefUnwindSafe
[src]

impl<C, D> Send for NewClient<C, D> where
    C: Send,
    D: Send
[src]

impl<C, D> Sync for NewClient<C, D> where
    C: Sync,
    D: Sync
[src]

impl<C, D> Unpin for NewClient<C, D> where
    C: Unpin,
    D: Unpin
[src]

impl<C, D> UnwindSafe for NewClient<C, D> where
    C: UnwindSafe,
    D: UnwindSafe
[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<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.

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