pub struct EventSubscriber<Id, Event> { /* private fields */ }
Expand description
Redis backend implementation for eventually::EventSubscriber
trait.
Trait Implementations§
Source§impl<Id, Event> EventSubscriber for EventSubscriber<Id, Event>
impl<Id, Event> EventSubscriber for EventSubscriber<Id, Event>
Source§type SourceId = Id
type SourceId = Id
Type of the Source id, typically an
AggregateId
.Source§type Event = Event
type Event = Event
Event type stored in the
EventStore
, typically an Aggregate::Event
.Source§type Error = SubscriberError
type Error = SubscriberError
Possible errors returned when receiving events from the notification channel.
Source§fn subscribe_all(
&self,
) -> BoxFuture<'_, SubscriberResult<SubscriberEventStream<'_, Self>>>
fn subscribe_all( &self, ) -> BoxFuture<'_, SubscriberResult<SubscriberEventStream<'_, Self>>>
Subscribes to all new events persisted in the
EventStore
, from
the moment of calling this function, in the future. Read moreAuto Trait Implementations§
impl<Id, Event> Freeze for EventSubscriber<Id, Event>
impl<Id, Event> RefUnwindSafe for EventSubscriber<Id, Event>where
Id: RefUnwindSafe,
Event: RefUnwindSafe,
impl<Id, Event> Send for EventSubscriber<Id, Event>
impl<Id, Event> Sync for EventSubscriber<Id, Event>
impl<Id, Event> Unpin for EventSubscriber<Id, Event>
impl<Id, Event> UnwindSafe for EventSubscriber<Id, Event>where
Id: UnwindSafe,
Event: 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