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; JournaledSession wraps it with an append-only operation log for durable persistence.

Modules§

in_memory 🔒 alloc
journaled 🔒 alloc

Structs§

InMemorySessionalloc
In-memory implementation of SessionState.
JournaledSessionalloc
A SessionState wrapper that serializes every mutation into raw bytes.
OutgoingQos1
A stored outgoing QoS 1 message, passed to the iteration callback.
OutgoingQos2
A stored outgoing QoS 2 message, passed to the iteration callback.

Enums§

Qos2Phase
The phase of a QoS 2 outbound publish from the client’s perspective. These correspond to the two halves of the QoS 2 four-step handshake (§4.3.3).

Traits§

SessionState
Persistent session state that must survive across network connections.

Type Aliases§

Qos1Callback
Callback for iterating over outgoing QoS 1 messages.