pub struct DbEmitter { /* private fields */ }Expand description
Database-backed emitter using PostgreSQL NOTIFY
Implementations§
Trait Implementations§
Source§impl PgmqNotifyEmitter for DbEmitter
impl PgmqNotifyEmitter for DbEmitter
Source§fn emit_queue_created<'life0, 'async_trait>(
&'life0 self,
event: QueueCreatedEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn emit_queue_created<'life0, 'async_trait>(
&'life0 self,
event: QueueCreatedEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Emit a queue created event
Source§fn emit_message_ready<'life0, 'async_trait>(
&'life0 self,
event: MessageReadyEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn emit_message_ready<'life0, 'async_trait>(
&'life0 self,
event: MessageReadyEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Emit a message ready event (signal only, for large messages)
Source§fn emit_batch_ready<'life0, 'async_trait>(
&'life0 self,
event: BatchReadyEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn emit_batch_ready<'life0, 'async_trait>(
&'life0 self,
event: BatchReadyEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Emit a batch ready event
Source§fn emit_message_with_payload<'life0, 'async_trait>(
&'life0 self,
event: MessageWithPayloadEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn emit_message_with_payload<'life0, 'async_trait>(
&'life0 self,
event: MessageWithPayloadEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Emit a message with payload event (TAS-133, for small messages)
Source§fn emit_event<'life0, 'async_trait>(
&'life0 self,
event: PgmqNotifyEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn emit_event<'life0, 'async_trait>(
&'life0 self,
event: PgmqNotifyEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Emit a generic PGMQ event
Auto Trait Implementations§
impl Freeze for DbEmitter
impl !RefUnwindSafe for DbEmitter
impl Send for DbEmitter
impl Sync for DbEmitter
impl Unpin for DbEmitter
impl !UnwindSafe for DbEmitter
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> 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