pub struct SnapshotPayload {
pub vm: VmSnapshot,
pub entity_cache: Vec<(String, Vec<(String, Value)>)>,
pub journal: JournalSnapshot,
}Expand description
The compressed body of a snapshot.
Fields§
§vm: VmSnapshot§entity_cache: Vec<(String, Vec<(String, Value)>)>Per view id: (entity_key, entity) pairs, most-recently-used first.
journal: JournalSnapshotRetained event tape per view. Absent in snapshots written before replayable subscriptions existed, which restore with an empty tape.
Trait Implementations§
Source§impl Clone for SnapshotPayload
impl Clone for SnapshotPayload
Source§impl Debug for SnapshotPayload
impl Debug for SnapshotPayload
Source§impl<'de> Deserialize<'de> for SnapshotPayload
impl<'de> Deserialize<'de> for SnapshotPayload
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 SnapshotPayload
impl RefUnwindSafe for SnapshotPayload
impl Send for SnapshotPayload
impl Sync for SnapshotPayload
impl Unpin for SnapshotPayload
impl UnsafeUnpin for SnapshotPayload
impl UnwindSafe for SnapshotPayload
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