Struct fibers_rpc::client::CastClient
[−]
[src]
pub struct CastClient<'a, T: Cast> { /* fields omitted */ }
Client for notification RPC.
Methods
impl<'a, T> CastClient<'a, T> where
T: Cast,
[src]
T: Cast,
pub fn cast(
self,
server: SocketAddr,
notification: T::Notification
) -> Result<()>
[src]
self,
server: SocketAddr,
notification: T::Notification
) -> Result<()>
Sends the notification message to the RPC server.
impl<'a, T: Cast> CastClient<'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 encoder(&self) -> &T::Encoder
[src]
Returns a reference to the encoder of this client.
pub fn encoder_mu(&mut self) -> &mut T::Encoder
[src]
Returns a mutable reference to the encoder of this client.
Trait Implementations
Auto Trait Implementations
impl<'a, T> Send for CastClient<'a, T> where
<T as Cast>::Encoder: Send,
<T as Cast>::Encoder: Send,
impl<'a, T> Sync for CastClient<'a, T> where
<T as Cast>::Encoder: Sync,
<T as Cast>::Encoder: Sync,