pub struct PgClaimedBufferStore { /* private fields */ }Implementations§
Source§impl PgClaimedBufferStore
impl PgClaimedBufferStore
pub fn new(pool: PgPool, config: PgClaimedBufferStoreConfig) -> Self
pub async fn connect( pool: PgPool, config: PgClaimedBufferStoreConfig, ) -> Result<Self>
pub async fn prepare_schema( pool: &PgPool, config: &PgClaimedBufferStoreConfig, ) -> Result<()>
pub fn schema_sql(config: &PgClaimedBufferStoreConfig) -> String
Trait Implementations§
Source§impl ClaimedBufferStore for PgClaimedBufferStore
impl ClaimedBufferStore for PgClaimedBufferStore
type Id = i64
async fn push(&self, event: &Event) -> Result<Self::Id>
async fn claim_batch( &self, owner_id: &OwnerId, max: usize, visibility: Duration, ) -> Result<Vec<ClaimedBufferEntry<Self::Id>>>
async fn ack(&self, id: &Self::Id) -> Result<()>
async fn nack(&self, id: &Self::Id) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for PgClaimedBufferStore
impl !UnwindSafe for PgClaimedBufferStore
impl Freeze for PgClaimedBufferStore
impl Send for PgClaimedBufferStore
impl Sync for PgClaimedBufferStore
impl Unpin for PgClaimedBufferStore
impl UnsafeUnpin for PgClaimedBufferStore
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