Struct twist::server::WebSocketProtocol [] [src]

pub struct WebSocketProtocol { /* fields omitted */ }

The protocol that can bu use to run on a tokio-proto TcpServer to handle websocket handshake and base frames.

Methods

impl WebSocketProtocol
[src]

Set the client flag.

Add a stdout slog Logger to this protocol.

Add a stderr slog Logger to this protocol.

Register a per-message extension.

Register a per-frame extension.

Trait Implementations

impl<T: AsyncRead + AsyncWrite + 'static> ClientProto<T> for WebSocketProtocol
[src]

Request messages.

Response messages.

The message transport, which works with I/O objects of type T. Read more

A future for initializing a transport from an I/O object. Read more

Build a transport from the given I/O object, using self for any configuration. Read more

impl<T: AsyncRead + AsyncWrite + 'static> ServerProto<T> for WebSocketProtocol
[src]

Request messages.

Response messages.

The message transport, which works with I/O objects of type T. Read more

A future for initializing a transport from an I/O object. Read more

Build a transport from the given I/O object, using self for any configuration. Read more

impl Default for WebSocketProtocol
[src]

Returns the "default value" for a type. Read more