Module session

Module session 

Expand description

Session state storage.

The SessionState trait abstracts the state that must survive across connections (§4.1). With alloc, InMemorySession provides a heap-backed implementation; journal::JournaledSession wraps it with an append-only operation log for durable persistence.

Modules§

in_memory 🔒 alloc
journalalloc
Append-only session operation log and its CRC-framed encoding.
ops
Serializable operations for mutating session state.

Structs§

FilterEntry
A single filter entry: its topic filter and lifecycle state.
InMemorySessionalloc
In-memory implementation of SessionState.
OutboxEntry
A stored outgoing publish awaiting acknowledgement.
PendingMeta
The next pending SUBSCRIBE/UNSUBSCRIBE group to send, returned by first_pending_group.
RestoredSubscription
The subscription a rejected UNSUBACK reverts to.
Subscription
A stored subscription, passed to the iteration callback.

Enums§

Applied
Outcome of SessionState::apply: whether the mutation took effect.
DrainAction
What a drain_outbox / drain_pubrel visitor decides for the entry it was handed.
FilterState
Lifecycle state of a single topic filter.
PendingKind
Whether a pending group is a SUBSCRIBE or an UNSUBSCRIBE, returned as part of PendingMeta.
Resolution
What a resolve_pending closure decides for one pending filter entry.

Traits§

SessionState
Persistent session state that must survive across network connections.