pub struct InterleavedSnapshotCheckpoint {
pub reconciliation_pos: Value,
pub tables: Vec<SnapshotTableProgress>,
}Expand description
Resumable checkpoint describing the state of an in-progress interleaved snapshot.
Fields§
§reconciliation_pos: ValueCurrent reconciliation stream position, serialized as JSON.
On resume the snapshot continues consuming the change stream from this position; on completion this is the position handed off to downstream replication-tail processing.
tables: Vec<SnapshotTableProgress>Per-table copy progress.
Implementations§
Source§impl InterleavedSnapshotCheckpoint
impl InterleavedSnapshotCheckpoint
Sourcepub fn new(
reconciliation_pos: Value,
tables: Vec<SnapshotTableProgress>,
) -> InterleavedSnapshotCheckpoint
pub fn new( reconciliation_pos: Value, tables: Vec<SnapshotTableProgress>, ) -> InterleavedSnapshotCheckpoint
Create a new snapshot checkpoint.
Trait Implementations§
Source§impl Checkpoint for InterleavedSnapshotCheckpoint
impl Checkpoint for InterleavedSnapshotCheckpoint
Source§const DATABASE_TYPE: &'static str = "interleaved_snapshot"
const DATABASE_TYPE: &'static str = "interleaved_snapshot"
Database type identifier (e.g., “mongodb”, “neo4j”, “postgresql”, “mysql”).
Source§fn to_cli_string(&self) -> String
fn to_cli_string(&self) -> String
Convert to CLI-friendly string format.
Source§fn from_cli_string(s: &str) -> Result<InterleavedSnapshotCheckpoint, Error>
fn from_cli_string(s: &str) -> Result<InterleavedSnapshotCheckpoint, Error>
Parse from CLI string format.
Source§impl Clone for InterleavedSnapshotCheckpoint
impl Clone for InterleavedSnapshotCheckpoint
Source§fn clone(&self) -> InterleavedSnapshotCheckpoint
fn clone(&self) -> InterleavedSnapshotCheckpoint
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<'de> Deserialize<'de> for InterleavedSnapshotCheckpoint
impl<'de> Deserialize<'de> for InterleavedSnapshotCheckpoint
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InterleavedSnapshotCheckpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InterleavedSnapshotCheckpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for InterleavedSnapshotCheckpoint
impl Serialize for InterleavedSnapshotCheckpoint
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InterleavedSnapshotCheckpoint
Auto Trait Implementations§
impl Freeze for InterleavedSnapshotCheckpoint
impl RefUnwindSafe for InterleavedSnapshotCheckpoint
impl Send for InterleavedSnapshotCheckpoint
impl Sync for InterleavedSnapshotCheckpoint
impl Unpin for InterleavedSnapshotCheckpoint
impl UnsafeUnpin for InterleavedSnapshotCheckpoint
impl UnwindSafe for InterleavedSnapshotCheckpoint
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