Module websocket::async [−][src]
A collection of handy asynchronous-only parts of the crate.
Re-exports
pub use codec; |
pub use codec::http::HttpClientCodec; |
pub use codec::http::HttpServerCodec; |
pub use server::async::Server; |
pub use client::async::Client; |
pub use result::async::WebSocketFuture; |
pub use futures; |
Modules
client | A collection of handy asynchronous-only parts of the |
server | A collection of handy asynchronous-only parts of the |
stream | A collection of traits and implementations for async streams. |
Structs
Handle | A reference to a reactor. |
MessageCodec | A codec for asynchronously decoding and encoding websocket messages. |
TcpListener | An I/O object representing a TCP socket listening for incoming connections. |
TcpStream | An I/O object representing a TCP stream connected to a remote endpoint. |
Enums
MsgCodecCtx | Even though a websocket connection may look perfectly symmetrical in reality there are small differences between clients and servers. This type is passed to the codecs to inform them of what role they are in (i.e. that of a Client or Server). |
Traits
Stream | A stream that can be read from and written to asynchronously. This let’s us abstract over many async streams like tcp, ssl, udp, ssh, etc. |