Struct copra::stub::RpcWrapper
[−]
[src]
pub struct RpcWrapper<'a, C: Clone> { /* fields omitted */ }
Bind a stub to a Channel
Methods
impl<'a, C: Clone> RpcWrapper<'a, C>
[src]
fn new(codec: C, channel: &'a Channel) -> Self
[src]
Create a binding from a codec and a reference to channel.
impl<'a, C> RpcWrapper<'a, C> where
C: MethodCodec + Clone,
[src]
C: MethodCodec + Clone,
fn call(&'a self, bundle: (C::Response, String, String)) -> StubFuture<C>
[src]
Issue a request and obtain a future.
Trait Implementations
impl<'a, C: Clone + Clone> Clone for RpcWrapper<'a, C>
[src]
fn clone(&self) -> RpcWrapper<'a, C>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more