Expand description
Wire protocol for FixedStore replication.
Frame format: [type: u8][len: u32 LE][payload: len bytes].
All integers are little-endian. See spec §6 for the full message table.
Structs§
- Ack
- Caught
Up - Shard
Info - L→F: leader advertises shard topology after accepting a SyncRequest.
- Slot
Batch Decoder - Zero-copy decoder reading events out of a payload slice.
- Slot
Batch Encoder - Incremental encoder — caller adds events one at a time to avoid building an intermediate Vec of event structs.
- Slot
Event Iter - Slot
Event Ref - Sync
Request - F→L: ask leader to sync the given shard.
Enums§
Constants§
- ACK_
INTERVAL - BATCH_
MAX_ BYTES - BATCH_
MAX_ ENTRIES - FLAG_
EMPTY_ STATE - Flags carried in SyncRequest.
- HEARTBEAT_
INTERVAL_ SECS - MAX_
FRAME_ PAYLOAD - PROTOCOL_
VERSION - TAIL_
POLL_ MS
Functions§
Type Aliases§
- Frame
- Frame
Reader - Stateful, resumable frame reader for non-blocking / read-timeout sockets
(shared implementation:
crate::frame_reader). On aWouldBlock/TimedOutmid-frame the buffered bytes are kept and the next call resumes exactly; after any terminal error discard the reader together with the connection.