Skip to main content

Module sync

Module sync 

Source
Expand description

Shared sync types and functionality for authenticated databases.

§Trust Model

Sources are untrusted, and their responses are verified against the requested target. The target itself is a trusted input chosen by the caller: sync does not select or authenticate it.

Target updates form a forward-only sequence. Sync adopts only strictly advancing targets and discards the rest. Selecting a single target before this boundary lets sync focus on fetching and verifying its data instead of reconciling competing targets.

Re-exports§

pub use source::FeedbackTx;
pub use source::Request;
pub use source::Response;
pub use source::Source;

Modules§

engine
Core sync engine components that are shared across sync clients.
source

Structs§

CompactTarget
Target state for syncing to a compact-storage database.
Metrics
Progress gauges updated by a sync flow.
Target
Target state to sync to.

Enums§

EngineError
Error
Errors that can occur during database synchronization.
ServeError
Errors from a Source when serving a request.

Traits§

Database
SourceFor
A Source of operations for the given database.

Functions§

sync
Create/open a database and sync it to a target state