pub struct MemoryRestoreFixture { /* private fields */ }Expand description
The reference RestoreFixture: a
[StoreSyncPeer] over a [MemoryIngestStore].
The in-memory peer that issues identities of its own. MemorySyncPeer
issues none, so it is not this family’s reference; a store peer over the
in-memory oracle is the far side every networked peer in this workspace
stands in front of.
§How it restores
A backup reads the store’s write groups whole: every event with its
identity, its recorded time and its group’s guard. A restore builds a
fresh [MemoryIngestStore], with an incarnation of its own, and
ingests the backed-up groups into it. Ingest keeps an origin’s identity and
time (VT-5, VT-9), so the restored log holds every backed-up event as it
was, at the positions it held; the fresh incarnation is the re-mint. The
in-memory store can do no other: it refuses a claim on its own identity it
does not hold (SY-38), so a restore under the old identity cannot be built
from its public API at all.
Implementations§
Trait Implementations§
Source§impl Debug for MemoryRestoreFixture
impl Debug for MemoryRestoreFixture
Source§impl Default for MemoryRestoreFixture
impl Default for MemoryRestoreFixture
Source§impl RestoreFixture for MemoryRestoreFixture
impl RestoreFixture for MemoryRestoreFixture
Source§type Peer = StoreSyncPeer<MemoryIngestHandle, MemoryIngestHandle>
type Peer = StoreSyncPeer<MemoryIngestHandle, MemoryIngestHandle>
Source§fn connect(&self) -> impl Future<Output = Self::Peer>
fn connect(&self) -> impl Future<Output = Self::Peer>
Source§async fn append_local(&self, events: &[Event]) -> Result<(), Violation>
async fn append_local(&self, events: &[Event]) -> Result<(), Violation>
events to the store as one local write, as the store’s own
writer would: each event takes an identity the store mints. Read more