Struct tarpc::client::NewClient [−][src]
pub struct NewClient<C, D> {
pub client: C,
pub dispatch: D,
}
Expand description
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
Trait Implementations
Auto Trait Implementations
impl<C, D> RefUnwindSafe for NewClient<C, D> where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<C, D> UnwindSafe for NewClient<C, D> where
C: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more