pub struct SqliteSyncCheckpointStore { /* private fields */ }Expand description
SQLite-backed per-peer synchronization checkpoints.
Trait Implementations§
Source§impl Clone for SqliteSyncCheckpointStore
impl Clone for SqliteSyncCheckpointStore
Source§fn clone(&self) -> SqliteSyncCheckpointStore
fn clone(&self) -> SqliteSyncCheckpointStore
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 SqliteSyncCheckpointStore
impl Debug for SqliteSyncCheckpointStore
Source§impl SyncCheckpointStore for SqliteSyncCheckpointStore
impl SyncCheckpointStore for SqliteSyncCheckpointStore
Source§fn get_checkpoint(&self, peer_id: &str) -> SyncResult<Option<(u64, String)>>
fn get_checkpoint(&self, peer_id: &str) -> SyncResult<Option<(u64, String)>>
Returns the last accepted sequence and batch hash for
peer_id.Source§fn set_checkpoint(
&self,
peer_id: &str,
sequence: u64,
hash: &str,
) -> SyncResult<()>
fn set_checkpoint( &self, peer_id: &str, sequence: u64, hash: &str, ) -> SyncResult<()>
Atomically replaces the sequence and batch hash for
peer_id.Auto Trait Implementations§
impl !RefUnwindSafe for SqliteSyncCheckpointStore
impl !UnwindSafe for SqliteSyncCheckpointStore
impl Freeze for SqliteSyncCheckpointStore
impl Send for SqliteSyncCheckpointStore
impl Sync for SqliteSyncCheckpointStore
impl Unpin for SqliteSyncCheckpointStore
impl UnsafeUnpin for SqliteSyncCheckpointStore
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