Skip to main content

Module session

Module session 

Source
Expand description

One connection’s state with no socket and no clock: the socket’s owner hands in what happened and when, and sends what comes back. Of the venue’s per-IP limits, subscriptions, users and posts in flight are refused here; connections and message rates are the owner’s to keep.

Re-exports§

pub use limits::Limits;
pub use limits::MAX_CONNECTIONS;
pub use limits::MAX_INFLIGHT_POSTS;
pub use limits::MAX_MESSAGES_PER_MINUTE;
pub use limits::MAX_NEW_CONNECTIONS_PER_MINUTE;
pub use limits::MAX_SUBSCRIPTIONS;
pub use limits::MAX_USERS;
pub use limits::Refused;
pub use timing::Retry;
pub use timing::Tick;
pub use timing::Timing;

Modules§

limits
The venue’s per-IP limits, the part of them one session holds (Limits), and why a session sends nothing (Refused).
timing
The session’s clock: its rules in milliseconds (Timing), what a tick asks of the socket’s owner, and how long a closed socket waits before it connects again.

Structs§

Session
One connection to one network’s websocket.