pub struct SqliteDeadLetterQueue { /* private fields */ }Expand description
SQLite-backed Dead Letter Queue
Implementations§
Source§impl SqliteDeadLetterQueue
impl SqliteDeadLetterQueue
Sourcepub fn new(conn: Connection) -> StorageResult<Self>
pub fn new(conn: Connection) -> StorageResult<Self>
Create a new DLQ using an existing database connection
DLQ shares the same database file as mailbox but uses separate tables.
Sourcepub async fn new_standalone<P: AsRef<Path>>(
database_path: P,
) -> StorageResult<Self>
pub async fn new_standalone<P: AsRef<Path>>( database_path: P, ) -> StorageResult<Self>
Create a new DLQ with a separate database file
Trait Implementations§
Source§impl DeadLetterQueue for SqliteDeadLetterQueue
impl DeadLetterQueue for SqliteDeadLetterQueue
Source§fn enqueue<'life0, 'async_trait>(
&'life0 self,
record: DlqRecord,
) -> Pin<Box<dyn Future<Output = StorageResult<Uuid>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn enqueue<'life0, 'async_trait>(
&'life0 self,
record: DlqRecord,
) -> Pin<Box<dyn Future<Output = StorageResult<Uuid>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a poison message to DLQ Read more
Source§fn query<'life0, 'async_trait>(
&'life0 self,
query: DlqQuery,
) -> Pin<Box<dyn Future<Output = StorageResult<Vec<DlqRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 self,
query: DlqQuery,
) -> Pin<Box<dyn Future<Output = StorageResult<Vec<DlqRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query DLQ records with filtering Read more
Source§fn get<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = StorageResult<Option<DlqRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = StorageResult<Option<DlqRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a single DLQ record by ID
Source§fn delete<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a DLQ record (after manual resolution) Read more
Auto Trait Implementations§
impl Freeze for SqliteDeadLetterQueue
impl RefUnwindSafe for SqliteDeadLetterQueue
impl Send for SqliteDeadLetterQueue
impl Sync for SqliteDeadLetterQueue
impl Unpin for SqliteDeadLetterQueue
impl UnwindSafe for SqliteDeadLetterQueue
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