[−][src]Struct fibers_rpc::client::CallClient
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,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,