pub struct ClientSender<T: Transport, P> { /* private fields */ }
Expand description
A strongly typed client sender.
Implementations§
Source§impl<T: Transport, P> ClientSender<T, P>
impl<T: Transport, P> ClientSender<T, P>
Sourcepub fn wrap_untyped(client: &ClientSender<T>) -> &Self
pub fn wrap_untyped(client: &ClientSender<T>) -> &Self
Wraps an untyped sender reference, returning a typed sender reference.
Sourcepub fn as_untyped(&self) -> &ClientSender<T>
pub fn as_untyped(&self) -> &ClientSender<T>
Returns the underlying untyped sender.
Trait Implementations§
Auto Trait Implementations§
impl<T, P> Freeze for ClientSender<T, P>
impl<T, P> RefUnwindSafe for ClientSender<T, P>
impl<T, P> Send for ClientSender<T, P>where
P: Send,
impl<T, P> Sync for ClientSender<T, P>
impl<T, P> Unpin for ClientSender<T, P>
impl<T, P> UnwindSafe for ClientSender<T, P>
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