pub struct JournalSnapshot {
pub epoch: Option<JournalEpoch>,
pub views: HashMap<String, PersistedViewJournal>,
}Expand description
The retained tape for every view, carried in the snapshot payload.
ponytail: this rides inside the existing whole-state snapshot rather than its own segment files. That buys the snapshot’s consistency cut for free — the tape and the entity cache are dumped under one barrier, so a restore can never leave the cache ahead of the tape — at the cost of rewriting the retained tape on every snapshot. Retention is bounded, so the cost is bounded too; if a deployment raises the bounds far enough that whole-blob rewrites hurt, the upgrade path is append-only segment objects alongside the snapshot.
Fields§
§epoch: Option<JournalEpoch>Absent in snapshots written before cursors carried an epoch; such a tape is discarded on restore rather than adopted under a new epoch.
views: HashMap<String, PersistedViewJournal>Trait Implementations§
Source§impl Clone for JournalSnapshot
impl Clone for JournalSnapshot
Source§impl Debug for JournalSnapshot
impl Debug for JournalSnapshot
Source§impl Default for JournalSnapshot
impl Default for JournalSnapshot
Source§impl<'de> Deserialize<'de> for JournalSnapshot
impl<'de> Deserialize<'de> for JournalSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JournalSnapshot
impl RefUnwindSafe for JournalSnapshot
impl Send for JournalSnapshot
impl Sync for JournalSnapshot
impl Unpin for JournalSnapshot
impl UnsafeUnpin for JournalSnapshot
impl UnwindSafe for JournalSnapshot
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