pub struct EntregasPostgres { /* private fields */ }Expand description
The relay’s publisher on the db transport: fans each event out to the consumers subscribed
to its type and marks it published, in one transaction.
Implementations§
Source§impl EntregasPostgres
impl EntregasPostgres
pub fn new(pool: PgPool) -> Self
Sourcepub fn enrutar(self, consumer: &str, event_types: &[&str]) -> Self
pub fn enrutar(self, consumer: &str, event_types: &[&str]) -> Self
Subscribes consumer to event_types — one [[consumer]] of puerto.toml.
Sourcepub fn consumidores_de(&self, event_type: &str) -> &[String]
pub fn consumidores_de(&self, event_type: &str) -> &[String]
Who receives an event of this type. None is fine: the event is marked published anyway.
Trait Implementations§
Source§impl PublicadorEventos for EntregasPostgres
impl PublicadorEventos for EntregasPostgres
Auto Trait Implementations§
impl !RefUnwindSafe for EntregasPostgres
impl !UnwindSafe for EntregasPostgres
impl Forget for EntregasPostgres
impl Freeze for EntregasPostgres
impl Move for EntregasPostgres
impl Send for EntregasPostgres
impl Sync for EntregasPostgres
impl Unpin for EntregasPostgres
impl UnsafeUnpin for EntregasPostgres
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