pub struct StreamSender<P>where
P: Protocol,{ /* private fields */ }Expand description
Cloneable native-message sender bound to an owned stream lease.
Implementations§
Source§impl<P> StreamSender<P>where
P: Protocol,
impl<P> StreamSender<P>where
P: Protocol,
Sourcepub async fn send<M>(&self, message: M) -> Result<(), ClientError>where
M: IntoOutboundMessage<P>,
pub async fn send<M>(&self, message: M) -> Result<(), ClientError>where
M: IntoOutboundMessage<P>,
Send on this lease, rejecting stale senders even after numeric ID reuse.
Trait Implementations§
Source§impl<P> Clone for StreamSender<P>where
P: Protocol,
impl<P> Clone for StreamSender<P>where
P: Protocol,
Source§fn clone(&self) -> StreamSender<P>
fn clone(&self) -> StreamSender<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<P> !RefUnwindSafe for StreamSender<P>
impl<P> !UnwindSafe for StreamSender<P>
impl<P> Freeze for StreamSender<P>where
RawStreamSender<P>: Freeze,
impl<P> Send for StreamSender<P>where
RawStreamSender<P>: Send,
impl<P> Sync for StreamSender<P>where
RawStreamSender<P>: Sync,
impl<P> Unpin for StreamSender<P>where
RawStreamSender<P>: Unpin,
impl<P> UnsafeUnpin for StreamSender<P>where
RawStreamSender<P>: UnsafeUnpin,
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