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§
Structs§
- Compact
Target - Target state for syncing to a compact-storage database.
- Metrics
- Progress gauges updated by a sync flow.
- Target
- Target state to sync to.
Enums§
- Engine
Error - Error
- Errors that can occur during database synchronization.
- Serve
Error - Errors from a
Sourcewhen serving a request.
Traits§
Functions§
- sync
- Create/open a database and sync it to a target state