pub struct SqliteSyncTombstoneStore { /* private fields */ }Expand description
Bounded SQLite tombstone storage for conservative deletion replication.
Implementations§
Source§impl SqliteSyncTombstoneStore
impl SqliteSyncTombstoneStore
Sourcepub fn record(&self, tombstone: &SqliteSyncTombstone) -> SqliteSyncResult<bool>
pub fn record(&self, tombstone: &SqliteSyncTombstone) -> SqliteSyncResult<bool>
Atomically inserts or advances one opaque deletion marker.
Sourcepub fn active(
&self,
now_ms: u64,
limit: usize,
) -> SqliteSyncResult<Vec<SqliteSyncTombstone>>
pub fn active( &self, now_ms: u64, limit: usize, ) -> SqliteSyncResult<Vec<SqliteSyncTombstone>>
Returns at most limit unexpired markers in deterministic order.
Sourcepub fn prune_expired(
&self,
now_ms: u64,
limit: usize,
) -> SqliteSyncResult<usize>
pub fn prune_expired( &self, now_ms: u64, limit: usize, ) -> SqliteSyncResult<usize>
Deletes at most limit expired markers and returns the deletion count.
Sourcepub fn len(&self) -> SqliteSyncResult<usize>
pub fn len(&self) -> SqliteSyncResult<usize>
Returns the current retained marker count.
Sourcepub fn is_empty(&self) -> SqliteSyncResult<bool>
pub fn is_empty(&self) -> SqliteSyncResult<bool>
Reports whether no markers are retained.
Trait Implementations§
Source§impl Clone for SqliteSyncTombstoneStore
impl Clone for SqliteSyncTombstoneStore
Source§fn clone(&self) -> SqliteSyncTombstoneStore
fn clone(&self) -> SqliteSyncTombstoneStore
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SqliteSyncTombstoneStore
impl !UnwindSafe for SqliteSyncTombstoneStore
impl Freeze for SqliteSyncTombstoneStore
impl Send for SqliteSyncTombstoneStore
impl Sync for SqliteSyncTombstoneStore
impl Unpin for SqliteSyncTombstoneStore
impl UnsafeUnpin for SqliteSyncTombstoneStore
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