Trait websocket::ws::sender::Sender [−][src]
A trait for sending data frames and messages.
Required methods
pub fn is_masked(&self) -> bool
[src]
Should the messages sent be masked. See the RFC for more detail.
Provided methods
pub fn send_dataframe<D, W>(
&mut self,
writer: &mut W,
dataframe: &D
) -> Result<(), WebSocketError> where
W: Write,
D: DataFrame,
[src]
&mut self,
writer: &mut W,
dataframe: &D
) -> Result<(), WebSocketError> where
W: Write,
D: DataFrame,
Sends a single data frame using this sender.
pub fn send_message<M, W>(
&mut self,
writer: &mut W,
message: &M
) -> Result<(), WebSocketError> where
M: Message,
W: Write,
[src]
&mut self,
writer: &mut W,
message: &M
) -> Result<(), WebSocketError> where
M: Message,
W: Write,
Sends a single message using this sender.