Module websocket::async

source ·
Expand description

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

Re-exports§

Modules§

  • A collection of handy asynchronous-only parts of the client module.
  • A collection of handy asynchronous-only parts of the server module.
  • A collection of traits and implementations for async streams.

Structs§

  • A reference to a reactor.
  • A codec for asynchronously decoding and encoding websocket messages.
  • An I/O object representing a TCP socket listening for incoming connections.
  • An I/O object representing a TCP stream connected to a remote endpoint.

Enums§

  • 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§

  • 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.