pub struct SqliteSyncOutbox { /* private fields */ }Expand description
SQLite-backed bounded synchronization outbox.
Trait Implementations§
Source§impl Clone for SqliteSyncOutbox
impl Clone for SqliteSyncOutbox
Source§fn clone(&self) -> SqliteSyncOutbox
fn clone(&self) -> SqliteSyncOutbox
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 SqliteSyncOutbox
impl Debug for SqliteSyncOutbox
Source§impl SyncOutbox for SqliteSyncOutbox
impl SyncOutbox for SqliteSyncOutbox
Source§fn try_enqueue(&self, message: SyncMessage, max_len: usize) -> SyncResult<bool>
fn try_enqueue(&self, message: SyncMessage, max_len: usize) -> SyncResult<bool>
Enqueues a batch if the current length is below
max_len.Source§fn front(&self) -> SyncResult<Option<SyncMessage>>
fn front(&self) -> SyncResult<Option<SyncMessage>>
Returns the oldest pending batch.
Source§fn acknowledge_front(&self, batch_id: &str) -> SyncResult<()>
fn acknowledge_front(&self, batch_id: &str) -> SyncResult<()>
Removes the oldest batch only when its identifier matches
batch_id.Source§fn messages(&self) -> SyncResult<Vec<SyncMessage>>
fn messages(&self) -> SyncResult<Vec<SyncMessage>>
Returns all pending batches in delivery order.
Source§fn len(&self) -> SyncResult<usize>
fn len(&self) -> SyncResult<usize>
Returns the number of pending batches.
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteSyncOutbox
impl !UnwindSafe for SqliteSyncOutbox
impl Freeze for SqliteSyncOutbox
impl Send for SqliteSyncOutbox
impl Sync for SqliteSyncOutbox
impl Unpin for SqliteSyncOutbox
impl UnsafeUnpin for SqliteSyncOutbox
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