pub enum ApplyOutcome {
Applied,
Ignored,
}Expand description
Whether apply_event_payload changed the projection. Distinguishing
the two lets the replay path log meaningful “applied vs skipped”
counts and lets tests assert that unknown events are tolerated.
Variants§
Applied
Event matched a known type and the in-memory projection was updated (or created).
Ignored
Event was structurally valid but its type/discriminant is not owned by this projection (cell events, future families).
Trait Implementations§
Source§impl Clone for ApplyOutcome
impl Clone for ApplyOutcome
Source§fn clone(&self) -> ApplyOutcome
fn clone(&self) -> ApplyOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplyOutcome
impl Debug for ApplyOutcome
Source§impl PartialEq for ApplyOutcome
impl PartialEq for ApplyOutcome
Source§fn eq(&self, other: &ApplyOutcome) -> bool
fn eq(&self, other: &ApplyOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ApplyOutcome
impl Eq for ApplyOutcome
impl StructuralPartialEq for ApplyOutcome
Auto Trait Implementations§
impl Freeze for ApplyOutcome
impl RefUnwindSafe for ApplyOutcome
impl Send for ApplyOutcome
impl Sync for ApplyOutcome
impl Unpin for ApplyOutcome
impl UnsafeUnpin for ApplyOutcome
impl UnwindSafe for ApplyOutcome
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