pub struct PgEventListenerConfig { /* private fields */ }
Expand description
PostgreSQL listener Configuration.
§Properties:
poll
: Thepoll
property 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_enabled
indicates if the listener is configured to handle events in “real time”.
Implementations§
Source§impl PgEventListenerConfig
impl PgEventListenerConfig
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”.
Trait Implementations§
Source§impl Clone for PgEventListenerConfig
impl Clone for PgEventListenerConfig
Source§fn clone(&self) -> PgEventListenerConfig
fn clone(&self) -> PgEventListenerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PgEventListenerConfig
impl RefUnwindSafe for PgEventListenerConfig
impl Send for PgEventListenerConfig
impl Sync for PgEventListenerConfig
impl Unpin for PgEventListenerConfig
impl UnwindSafe for PgEventListenerConfig
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