Crate reception

Source
Expand description

This crate provides a way of binding a TCP listener that will accept incoming WebSocket connections. Additionally it provides an abstraction layer (see Client) for serializing and deserializing well-defined models.

Modules§

client
Module containing types associated with client-level abstraction (sending and receiving models).
connection
Module containing types associated with connection-level abstraction (sending raw bytes and handling protocol details).

Structs§

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.
Listener
Binds to a configured port and accepts incoming connections.
ListenerConfig
Configures the listener.

Enums§

ListenerError
Errors that can be raised by Listener.

Traits§

SenderHandle
Sender trait implemented for some service handles.