pub struct Sender { /* private fields */ }
Expand description
A Sender that wraps a Writer and provides a default implementation using DataFrames and Messages.
Implementations§
Trait Implementations§
source§impl Sender for Sender
impl Sender for Sender
source§fn send_dataframe<D, W>(
&mut self,
writer: &mut W,
dataframe: &D
) -> Result<(), WebSocketError>
fn send_dataframe<D, W>( &mut self, writer: &mut W, dataframe: &D ) -> Result<(), WebSocketError>
Sends a single data frame using this sender.
source§fn send_message<M, W>(
&mut self,
writer: &mut W,
message: &M
) -> Result<(), WebSocketError>
fn send_message<M, W>( &mut self, writer: &mut W, message: &M ) -> Result<(), WebSocketError>
Sends a single message using this sender.
Auto Trait Implementations§
impl Freeze for Sender
impl RefUnwindSafe for Sender
impl Send for Sender
impl Sync for Sender
impl Unpin for Sender
impl UnwindSafe for Sender
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