[][src]Struct fibers_rpc::client::CastClient

pub struct CastClient<'a, T: Cast> { /* fields omitted */ }

Client for notification RPC.

Methods

impl<'a, T> CastClient<'a, T> where
    T: Cast
[src]

pub fn cast(
    self,
    server: SocketAddr,
    notification: T::Notification
) -> Result<()>
[src]

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_mut(&mut self) -> &mut T::Encoder[src]

Returns a mutable reference to the encoder of this client.

Trait Implementations

impl<'a, T: Debug + Cast> Debug for CastClient<'a, T> where
    T::Encoder: Debug
[src]

Auto Trait Implementations

impl<'a, T> Send for CastClient<'a, T> where
    <T as Cast>::Encoder: Send

impl<'a, T> Sync for CastClient<'a, T> where
    <T as Cast>::Encoder: 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]