pub struct PublishedEvent<E> {
pub persistence_id: PersistenceId,
pub sequence_nr: SequenceNr,
pub event: E,
pub timestamp_ms: i64,
pub tags: Vec<Tag>,
}Expand description
A confirmed domain-typed event published by a running behavior.
This deliberately publishes E, rather than the erased journal payload:
Datum’s typed Topic makes the domain event the useful subscription type.
Fields§
§persistence_id: PersistenceIdPersistent entity identity.
sequence_nr: SequenceNrConfirmed event sequence number.
event: EDomain event supplied to the event handler.
timestamp_ms: i64Journal timestamp in Unix-epoch milliseconds.
Query tags stored with the event.
Trait Implementations§
Source§impl<E: Clone> Clone for PublishedEvent<E>
impl<E: Clone> Clone for PublishedEvent<E>
Source§impl<E: Debug> Debug for PublishedEvent<E>
impl<E: Debug> Debug for PublishedEvent<E>
impl<E: Eq> Eq for PublishedEvent<E>
Source§impl<E: PartialEq> PartialEq for PublishedEvent<E>
impl<E: PartialEq> PartialEq for PublishedEvent<E>
impl<E: PartialEq> StructuralPartialEq for PublishedEvent<E>
Auto Trait Implementations§
impl<E> Freeze for PublishedEvent<E>where
E: Freeze,
impl<E> RefUnwindSafe for PublishedEvent<E>where
E: RefUnwindSafe,
impl<E> Send for PublishedEvent<E>where
E: Send,
impl<E> Sync for PublishedEvent<E>where
E: Sync,
impl<E> Unpin for PublishedEvent<E>where
E: Unpin,
impl<E> UnsafeUnpin for PublishedEvent<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for PublishedEvent<E>where
E: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<S> IntoEventHandlerResult<S> for S
impl<S> IntoEventHandlerResult<S> for S
Source§fn into_event_handler_result(self) -> Result<S, PersistenceError>
fn into_event_handler_result(self) -> Result<S, PersistenceError>
Converts this handler output into the runtime result.
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage