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

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

Client for notification RPC.

Implementations

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

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

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

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

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.