Struct fibers_rpc::client::CallClient
[−]
[src]
pub struct CallClient<'a, T: Call> { /* fields omitted */ }
Client for request/response RPC.
Methods
impl<'a, T: Call> CallClient<'a, T>
[src]
pub fn call(self, server: SocketAddr, request: T::Req) -> Response<T::Res>
[src]
Sends the request message to the RPC server, and returns a future that represents the response from the server.
impl<'a, T: Call> CallClient<'a, T>
[src]
pub fn options(&self) -> &Options
[src]
Returns a reference to the RPC options of this client.
pub fn options_mut(&mut self) -> &mut Options
[src]
Returns a mutable reference to the RPC options of this client.
pub fn decoder(&self) -> &T::ResDecoder
[src]
Returns a reference to the decoder of this client.
pub fn decoder_mut(&mut self) -> &mut T::ResDecoder
[src]
Returns a mutable reference to the decoder of this client.
pub fn encoder(&self) -> &T::ReqEncoder
[src]
Returns a reference to the encoder of this client.
pub fn encoder_mut(&mut self) -> &mut T::ReqEncoder
[src]
Returns a mutable reference to the encoder of this client.
Trait Implementations
impl<'a, T: Debug + Call> Debug for CallClient<'a, T> where
T::ResDecoder: Debug,
T::ReqEncoder: Debug,
[src]
T::ResDecoder: Debug,
T::ReqEncoder: Debug,
Auto Trait Implementations
impl<'a, T> Send for CallClient<'a, T> where
<T as Call>::ReqEncoder: Send,
<T as Call>::ResDecoder: Send,
<T as Call>::ReqEncoder: Send,
<T as Call>::ResDecoder: Send,
impl<'a, T> Sync for CallClient<'a, T> where
<T as Call>::ReqEncoder: Sync,
<T as Call>::ResDecoder: Sync,
<T as Call>::ReqEncoder: Sync,
<T as Call>::ResDecoder: Sync,