pub struct ClientSender<T: Transport> { /* private fields */ }
Expand description
A sender for a client endpoint.
Implementations§
Source§impl<T: Transport> ClientSender<T>
impl<T: Transport> ClientSender<T>
Sourcepub fn send_one_way<M>(
&self,
ordinal: u64,
request: &mut M,
) -> Result<T::SendFuture<'_>, EncodeError>
pub fn send_one_way<M>( &self, ordinal: u64, request: &mut M, ) -> Result<T::SendFuture<'_>, EncodeError>
Send a request.
Sourcepub fn send_two_way<M>(
&self,
ordinal: u64,
request: &mut M,
) -> Result<ResponseFuture<'_, T>, EncodeError>
pub fn send_two_way<M>( &self, ordinal: u64, request: &mut M, ) -> Result<ResponseFuture<'_, T>, EncodeError>
Send a request and await for a response.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ClientSender<T>
impl<T> RefUnwindSafe for ClientSender<T>
impl<T> Send for ClientSender<T>
impl<T> Sync for ClientSender<T>
impl<T> Unpin for ClientSender<T>
impl<T> UnwindSafe for ClientSender<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more