From b9b54f318a7f7892a9f6e2a4f4fcf2a276492b8c Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 22:29:07 +0100 Subject: api: allow reading past versions --- src/document/store.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/document/store.rs') diff --git a/src/document/store.rs b/src/document/store.rs index c2c0622..c16767b 100644 --- a/src/document/store.rs +++ b/src/document/store.rs @@ -94,6 +94,9 @@ pub(crate) enum StoreError { /// An index past a list's end (`length` items). #[error("index {index} is past the list's end ({length} items)")] PastTheEnd { index: usize, length: usize }, + /// A read at heads the document doesn't have (`at::At`). + #[error("this node doesn't have these heads (yet)")] + UnknownHeads, /// The node is rejoining a newer epoch: no writes until it is done /// (`Replica::writable`). #[error("the node is rejoining a newer epoch; writes are refused until it is done")] -- cgit v1.3.1