pub enum MemorySource {
Store(Arc<dyn MemoryStore>),
Replay(MemoryReplaySource),
}Expand description
Where a journaled memory handle answers reads from: the live store (record mode) or a recorded journal (replay mode).
Node code holds one JournaledMemory either way and cannot tell the
difference — the same discipline the Flight Recorder’s recording and
replaying model wrappers apply: behavior that matters is journaled, and
replay serves the journal instead of the world.
Variants§
Store(Arc<dyn MemoryStore>)
Read from and write to a live MemoryStore, journaling every
operation.
Replay(MemoryReplaySource)
Read from a recorded journal (MemoryReplaySource), re-journaling
the served events byte-identically. Writes fail: a replayed run
issuing a write has diverged from its evidence.
Trait Implementations§
Source§impl Clone for MemorySource
impl Clone for MemorySource
Auto Trait Implementations§
impl !RefUnwindSafe for MemorySource
impl !UnwindSafe for MemorySource
impl Freeze for MemorySource
impl Send for MemorySource
impl Sync for MemorySource
impl Unpin for MemorySource
impl UnsafeUnpin for MemorySource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more