[][src]Struct fibers_rpc::client::CallClient

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]

Auto Trait Implementations

impl<'a, T> Send for CallClient<'a, T> where
    <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

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]