pub struct SqliteBufferStore<C> { /* private fields */ }Implementations§
Source§impl<C> SqliteBufferStore<C>
impl<C> SqliteBufferStore<C>
pub fn new(conn: SqliteConn, config: SqliteBufferStoreConfig) -> Self
pub fn connect( conn: SqliteConn, config: SqliteBufferStoreConfig, ) -> Result<Self>
pub fn prepare_schema( conn: &SqliteConn, config: &SqliteBufferStoreConfig, ) -> Result<()>
pub fn schema_sql(config: &SqliteBufferStoreConfig) -> String
Trait Implementations§
Source§impl<C> BufferStore<C> for SqliteBufferStore<C>
impl<C> BufferStore<C> for SqliteBufferStore<C>
type Id = SqliteBufferStoreId
async fn push(&self, event: &Event, cursor: &C) -> Result<Self::Id>
Source§async fn pending(&self) -> Result<Vec<BufferEntry<C, Self::Id>>>
async fn pending(&self) -> Result<Vec<BufferEntry<C, Self::Id>>>
Returns a snapshot of entries currently held by the store
without removing them. Re-calling without ack/nack returns the
same set.
async fn ack(&self, id: &Self::Id) -> Result<()>
async fn nack(&self, _id: &Self::Id) -> Result<()>
Auto Trait Implementations§
impl<C> Freeze for SqliteBufferStore<C>
impl<C> RefUnwindSafe for SqliteBufferStore<C>where
C: RefUnwindSafe,
impl<C> Send for SqliteBufferStore<C>where
C: Send,
impl<C> Sync for SqliteBufferStore<C>where
C: Sync,
impl<C> Unpin for SqliteBufferStore<C>where
C: Unpin,
impl<C> UnsafeUnpin for SqliteBufferStore<C>
impl<C> UnwindSafe for SqliteBufferStore<C>where
C: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more