pub struct NoopEmitter { /* private fields */ }Expand description
No-operation emitter for testing and disabled scenarios
Implementations§
Source§impl NoopEmitter
impl NoopEmitter
Sourcepub fn new(config: PgmqNotifyConfig) -> Result<Self>
pub fn new(config: PgmqNotifyConfig) -> Result<Self>
Create a new no-op emitter
Sourcepub fn config(&self) -> &PgmqNotifyConfig
pub fn config(&self) -> &PgmqNotifyConfig
Get the configuration
Trait Implementations§
Source§impl Clone for NoopEmitter
impl Clone for NoopEmitter
Source§fn clone(&self) -> NoopEmitter
fn clone(&self) -> NoopEmitter
Returns a duplicate of the value. Read more
1.0.0 · 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 NoopEmitter
impl Debug for NoopEmitter
Source§impl PgmqNotifyEmitter for NoopEmitter
impl PgmqNotifyEmitter for NoopEmitter
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 NoopEmitter
impl RefUnwindSafe for NoopEmitter
impl Send for NoopEmitter
impl Sync for NoopEmitter
impl Unpin for NoopEmitter
impl UnwindSafe for NoopEmitter
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