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§
Structs§
- InMemory
Session alloc - In-memory implementation of
SessionState. - Journaled
Session alloc - A
SessionStatewrapper that serializes every mutation into raw bytes. - Outgoing
Qos1 - A stored outgoing
QoS1 message, passed to the iteration callback. - Outgoing
Qos2 - A stored outgoing
QoS2 message, passed to the iteration callback.
Enums§
- Qos2
Phase - The phase of a
QoS2 outbound publish from the client’s perspective. These correspond to the two halves of theQoS2 four-step handshake (§4.3.3).
Traits§
- Session
State - Persistent session state that must survive across network connections.
Type Aliases§
- Qos1
Callback - Callback for iterating over outgoing
QoS1 messages.