Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

Module protocol

Module protocol 

Source
Expand description

Protocol definitions for sync communication.

This module defines transport-agnostic message types that can be used across different network transports (HTTP, Iroh, Bluetooth, etc.).

Structs§

BootstrapResponse
Bootstrap response containing complete tree state
HandshakeRequest
Handshake request sent when establishing a peer connection.
HandshakeResponse
Handshake response sent in reply to a handshake request.
IncrementalResponse
Incremental sync response for existing trees
RequestContext
Context information about the incoming request.
SyncTreeRequest
Unified sync request for both bootstrap and incremental sync
TreeInfo
Information about a tree available for sync

Enums§

SyncRequest
Request messages that can be sent to a sync peer.
SyncResponse
Response messages returned from a sync peer.

Constants§

PROTOCOL_VERSION
Current protocol version - 0 indicates unstable