pub struct IncrementalSnapshotHandle { /* private fields */ }Expand description
A StreamHandle that interleaves per-table chunk reads with the live
replication stream using the DBLog watermark pattern.
Obtain an instance via PostgresConnection::start_incremental_snapshot.
Trait Implementations§
Source§impl StreamHandle for IncrementalSnapshotHandle
impl StreamHandle for IncrementalSnapshotHandle
fn next_events<'life0, 'async_trait>(
&'life0 mut self,
timeout_ms: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Event>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save_position<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint: &'life1 mut dyn Checkpoint,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn requeue_events<'life0, 'async_trait>(
&'life0 mut self,
events: Vec<Event>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn requeue_events<'life0, 'async_trait>(
&'life0 mut self,
events: Vec<Event>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Requeue events so they are returned by a subsequent
next_events call. Read moreSource§fn confirm_lsn<'life0, 'async_trait>(
&'life0 mut self,
lsn: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn confirm_lsn<'life0, 'async_trait>(
&'life0 mut self,
lsn: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Confirm that all messages up to
lsn have been durably consumed.
Prevents WAL retention bloat on replication slots.Auto Trait Implementations§
impl !RefUnwindSafe for IncrementalSnapshotHandle
impl !UnwindSafe for IncrementalSnapshotHandle
impl Freeze for IncrementalSnapshotHandle
impl Send for IncrementalSnapshotHandle
impl Sync for IncrementalSnapshotHandle
impl Unpin for IncrementalSnapshotHandle
impl UnsafeUnpin for IncrementalSnapshotHandle
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