pub struct StreamSender<P> { /* private fields */ }
Expand description
A sender of packets to an open stream.
Implementations§
Source§impl<P> StreamSender<P>
impl<P> StreamSender<P>
Sourcepub async fn send(&self, packet: P) -> Result<(), StreamError>
pub async fn send(&self, packet: P) -> Result<(), StreamError>
Sends a packet to the client or the server.
Trait Implementations§
Source§impl<P: Clone> Clone for StreamSender<P>
impl<P: Clone> Clone for StreamSender<P>
Source§fn clone(&self) -> StreamSender<P>
fn clone(&self) -> StreamSender<P>
Returns a duplicate of the value. Read more
1.0.0 · 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> Freeze for StreamSender<P>
impl<P> RefUnwindSafe for StreamSender<P>
impl<P> Send for StreamSender<P>where
P: Send,
impl<P> Sync for StreamSender<P>where
P: Send,
impl<P> Unpin for StreamSender<P>
impl<P> UnwindSafe for StreamSender<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