[−][src]Struct fibers_rpc::client::CastClient
Client for notification RPC.
Implementations
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_mut(&mut self) -> &mut T::Encoder
[src]
Returns a mutable reference to the encoder of this client.
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for CastClient<'a, T> where
T: RefUnwindSafe,
<T as Cast>::Encoder: RefUnwindSafe,
T: RefUnwindSafe,
<T as Cast>::Encoder: RefUnwindSafe,
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,
impl<'a, T> Unpin for CastClient<'a, T> where
T: Unpin,
<T as Cast>::Encoder: Unpin,
T: Unpin,
<T as Cast>::Encoder: Unpin,
impl<'a, T> UnwindSafe for CastClient<'a, T> where
T: UnwindSafe,
<T as Cast>::Encoder: UnwindSafe,
T: UnwindSafe,
<T as Cast>::Encoder: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,