Struct fire_stream::handler::StreamSender
source · 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 copy 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> !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