Struct websocket::sender::Sender [] [src]

pub struct Sender<W> { /* fields omitted */ }

A Sender that wraps a Writer and provides a default implementation using DataFrames and Messages.

Methods

impl<W> Sender<W>
[src]

Create a new WebSocketSender using the specified Writer.

Returns a reference to the underlying Writer.

Returns a mutable reference to the underlying Writer.

impl Sender<WebSocketStream>
[src]

Closes the sender side of the connection, will cause all pending and future IO to return immediately with an appropriate value.

Shuts down both Sender and Receiver, will cause all pending and future IO to return immediately with an appropriate value.

Changes whether the sender is in nonblocking mode.

Trait Implementations

impl<W: Write> Sender for Sender<W>
[src]

Sends a single data frame to the remote endpoint.

Sends a single message using this sender.