Module async

Source
Expand description

A collection of handy asynchronous-only parts of the crate.

Re-exports§

pub use crate::codec;
pub use crate::codec::http::HttpClientCodec;
pub use crate::codec::http::HttpServerCodec;
pub use crate::server::async::Server;
pub use crate::client::async::Client;
pub use crate::result::async::WebSocketFuture;
pub use futures;

Modules§

client
A collection of handy asynchronous-only parts of the client module.
server
A collection of handy asynchronous-only parts of the server module.
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.