Skip to main content

Crate pulsify_protocol

Crate pulsify_protocol 

Source
Expand description

Pulsify protocol v1. The transport/patch journal is independent of a CRDT engine.

Structs§

AppendResult
Error
Hub
One writer and its sessions: each session is pinned to a document, and rows stored through one session are forwarded to the document’s other sessions.
Message
PatchLog
Opaque immutable segments; the frontier advances only when dependencies exist.
PatchRow
Relay
Single-peer reference relay for embedding or the line-based interoperability CLI.
RelayOutput
The frames produced by one incoming frame.

Enums§

Body

Constants§

MAX_FRAME_BYTES
MAX_MESSAGE_ROWS
MAX_PATCH_BYTES
MAX_SAFE_INTEGER
MAX_SCHEMA_NODES
MAX_VECTOR_ENTRIES

Traits§

PatchStore
Immutable rows keyed by (doc_id, sid, clock). Rows stay pending until their actor prefix is contiguous and their dependencies are stored.
Sink
Delivers frames to one session. Returns false once the peer is gone.

Functions§

chunk_rows
Mirror of chunkRows: about 2 MiB, 4096 rows and the relay node budget per page.
decode
encode
relay_frame
Serve one protocol frame from the store, like relayStoreMessage. Rows are committed before the acknowledgement. A frame which cannot be decoded is an Err; every other failure becomes an error frame for the peer.
validate_doc_id
validate_rows
Checks the rows of one append, before any storage access. Returns their document, or None when there is no row.
validate_vector

Type Aliases§

VersionVector