pub struct PgEventListenerConfig<R> { /* private fields */ }Expand description
PostgreSQL listener Configuration.
§Properties:
poll: Thepollproperty represents the interval at which the listener should poll for new events from the event store. This determines how frequently the event handler will handles new events.notifier_enabled: Thenotifier_enabledindicates if the listener is configured to handle events in “real time”.
Implementations§
Source§impl PgEventListenerConfig<AbortRetry>
impl PgEventListenerConfig<AbortRetry>
Sourcepub fn poller(poll: Duration) -> PgEventListenerConfig<AbortRetry>
pub fn poller(poll: Duration) -> PgEventListenerConfig<AbortRetry>
Source§impl<R> PgEventListenerConfig<R>
impl<R> PgEventListenerConfig<R>
Sourcepub fn fetch_size(self, fetch_size: usize) -> Self
pub fn fetch_size(self, fetch_size: usize) -> Self
Sourcepub fn with_notifier(self) -> Self
pub fn with_notifier(self) -> Self
Sets the db notifier.
§Returns
The updated PgEventListenerConfig instance with the db notifier set.
When the db notifier is enabled, the event listener will handle events in “real time”.
Sourcepub fn with_retry<R1>(self, retry: R1) -> PgEventListenerConfig<R1>
pub fn with_retry<R1>(self, retry: R1) -> PgEventListenerConfig<R1>
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for PgEventListenerConfig<R>where
R: Freeze,
impl<R> RefUnwindSafe for PgEventListenerConfig<R>where
R: RefUnwindSafe,
impl<R> Send for PgEventListenerConfig<R>where
R: Send,
impl<R> Sync for PgEventListenerConfig<R>where
R: Sync,
impl<R> Unpin for PgEventListenerConfig<R>where
R: Unpin,
impl<R> UnwindSafe for PgEventListenerConfig<R>where
R: 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