pub struct SnapshotChunk {
pub epoch: u64,
pub schema_fp: SchemaFp,
pub index: u64,
pub last: bool,
pub adds: Vec<FlatChange>,
}Expand description
One frame of a chunked hydrate snapshot (FLAT-CHANGES-DESIGN.md §5.4). The
initial snapshot is O(full result) — the whole tree as top-level Adds (each with
its inline subtree) — so it is paged across SnapshotChunks rather than one giant
batch. adds is a slice of those top-level Adds; index is gap-free within the
snapshot; last is the snapshot_complete marker (the receiver renders only after
it). All chunks carry the subscription epoch + schema_fp so a mid-snapshot drift
is caught. A chunk’s adds apply atomically (each carries its full subtree).
Fields§
§epoch: u64§schema_fp: SchemaFp§index: u640-based, gap-free within this snapshot.
last: boolThe snapshot_complete marker — true on the final chunk.
adds: Vec<FlatChange>Top-level Adds (each with its inline subtree) for this page.
Trait Implementations§
Source§impl Clone for SnapshotChunk
impl Clone for SnapshotChunk
Source§fn clone(&self) -> SnapshotChunk
fn clone(&self) -> SnapshotChunk
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotChunk
impl Debug for SnapshotChunk
Source§impl<'de> Deserialize<'de> for SnapshotChunk
impl<'de> Deserialize<'de> for SnapshotChunk
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 SnapshotChunk
impl RefUnwindSafe for SnapshotChunk
impl Send for SnapshotChunk
impl Sync for SnapshotChunk
impl Unpin for SnapshotChunk
impl UnsafeUnpin for SnapshotChunk
impl UnwindSafe for SnapshotChunk
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