[−][src]Trait websocket::ws::sender::Sender
A trait for sending data frames and messages.
Required Methods
Provided Methods
fn send_dataframe<D, W>(
&mut self,
writer: &mut W,
dataframe: &D
) -> WebSocketResult<()> where
D: DataFrame,
W: Write,
&mut self,
writer: &mut W,
dataframe: &D
) -> WebSocketResult<()> where
D: DataFrame,
W: Write,
Sends a single data frame using this sender.
fn send_message<M, W>(
&mut self,
writer: &mut W,
message: &M
) -> WebSocketResult<()> where
M: Message,
W: Write,
&mut self,
writer: &mut W,
message: &M
) -> WebSocketResult<()> where
M: Message,
W: Write,
Sends a single message using this sender.
Implementors
impl Sender for Sender
[src]
impl Sender for Sender
fn is_masked(&self) -> bool
[src]
fn is_masked(&self) -> bool
fn send_dataframe<D, W>(
&mut self,
writer: &mut W,
dataframe: &D
) -> WebSocketResult<()> where
D: DataFrame,
W: Write,
[src]
fn send_dataframe<D, W>(
&mut self,
writer: &mut W,
dataframe: &D
) -> WebSocketResult<()> where
D: DataFrame,
W: Write,
fn send_message<M, W>(
&mut self,
writer: &mut W,
message: &M
) -> WebSocketResult<()> where
M: Message,
W: Write,
[src]
fn send_message<M, W>(
&mut self,
writer: &mut W,
message: &M
) -> WebSocketResult<()> where
M: Message,
W: Write,