pub struct UnwrapLogEntries;Expand description
Saga: every LogEntry SET (from CLI pushes or Postgres replay) is unwrapped into its inner event.
Trait Implementations§
Source§impl Saga for UnwrapLogEntries
impl Saga for UnwrapLogEntries
Source§type Command = <UnwrapLogEntries as SagaHandler>::Command
type Command = <UnwrapLogEntries as SagaHandler>::Command
Typed command emitted by this saga.
Source§fn build(
events: EventStream,
ctx: Arc<SagaContext>,
) -> BoxStream<'static, Self::Command>
fn build( events: EventStream, ctx: Arc<SagaContext>, ) -> BoxStream<'static, Self::Command>
Build the event processing pipeline.
Source§impl SagaHandler for UnwrapLogEntries
impl SagaHandler for UnwrapLogEntries
Source§const EVENT_TYPE: MEventType = MEventType::SET
const EVENT_TYPE: MEventType = MEventType::SET
Event change type consumed by this saga.
Source§type Command = ApplyLogEntry
type Command = ApplyLogEntry
Command type emitted by this saga.
Source§fn handle(
item: LogEntry,
_event: MEvent,
_ctx: Arc<SagaContext>,
) -> Option<ApplyLogEntry>
fn handle( item: LogEntry, _event: MEvent, _ctx: Arc<SagaContext>, ) -> Option<ApplyLogEntry>
Handle one matching event and optionally emit a command.
Auto Trait Implementations§
impl Freeze for UnwrapLogEntries
impl RefUnwindSafe for UnwrapLogEntries
impl Send for UnwrapLogEntries
impl Sync for UnwrapLogEntries
impl Unpin for UnwrapLogEntries
impl UnsafeUnpin for UnwrapLogEntries
impl UnwindSafe for UnwrapLogEntries
Blanket Implementations§
Source§impl<S> AnySaga for Swhere
S: Saga,
impl<S> AnySaga for Swhere
S: Saga,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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