pub struct StructuralDiffPage {
pub diffs: Vec<Diff>,
pub next_cursor: Option<StructuralDiffCursor>,
pub stats: DiffTraversalStats,
}Expand description
A bounded page from the structural diff iterator.
Unlike DiffPage, this page resumes from a structural checkpoint instead
of recomputing from a key cursor. It is useful for long-running sync,
indexing, or replication jobs that want to preserve CID-based subtree
pruning across checkpoints.
Fields§
§diffs: Vec<Diff>Diff entries emitted by this page.
next_cursor: Option<StructuralDiffCursor>Checkpoint for the next page, or None when the traversal is complete.
stats: DiffTraversalStatsTraversal counters collected while producing this page.
Trait Implementations§
Source§impl Clone for StructuralDiffPage
impl Clone for StructuralDiffPage
Source§fn clone(&self) -> StructuralDiffPage
fn clone(&self) -> StructuralDiffPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructuralDiffPage
impl Debug for StructuralDiffPage
Source§impl Default for StructuralDiffPage
impl Default for StructuralDiffPage
Source§fn default() -> StructuralDiffPage
fn default() -> StructuralDiffPage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StructuralDiffPage
impl<'de> Deserialize<'de> for StructuralDiffPage
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
impl Eq for StructuralDiffPage
Source§impl PartialEq for StructuralDiffPage
impl PartialEq for StructuralDiffPage
Source§impl Serialize for StructuralDiffPage
impl Serialize for StructuralDiffPage
impl StructuralPartialEq for StructuralDiffPage
Auto Trait Implementations§
impl Freeze for StructuralDiffPage
impl RefUnwindSafe for StructuralDiffPage
impl Send for StructuralDiffPage
impl Sync for StructuralDiffPage
impl Unpin for StructuralDiffPage
impl UnsafeUnpin for StructuralDiffPage
impl UnwindSafe for StructuralDiffPage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more