pub enum EntryKind {
ExternalCommand,
DerivedEvent,
}Expand description
Provenance of a journal entry for replay purposes.
Encoded into / decoded from a PersistentRepr tag so no struct field
is added.
Variants§
ExternalCommand
A non-reproducible external input (clock read, user command, network reply). On replay these are fed back as recorded — never recomputed.
DerivedEvent
A value the aggregate derives deterministically from prior state + external inputs. On replay these are recomputed and checked against the recording.
Implementations§
Trait Implementations§
impl Copy for EntryKind
impl Eq for EntryKind
impl StructuralPartialEq for EntryKind
Auto Trait Implementations§
impl Freeze for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnsafeUnpin for EntryKind
impl UnwindSafe for EntryKind
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