pub struct InputStateSeed {
pub phase: InputLifecycleState,
pub last_run_id: Option<RunId>,
pub last_boundary_sequence: Option<u64>,
pub terminal_outcome: Option<InputTerminalOutcome>,
pub attempt_count: u32,
}Expand description
DSL-owned lifecycle projection for an input.
Carries the fields that are authoritative in the MeerkatMachine DSL
(input_phases, input_run_associations, input_boundary_sequences,
input_terminal_kind + input_superseded_by / input_aggregate_id /
input_abandon_reason / input_abandon_attempt_count, and
input_attempt_counts) so they can travel alongside a persisted
InputState at the store boundary, where no live DSL is available to
query. Inside a running driver, these values are always read from the DSL
directly, never from the seed.
Fields§
§phase: InputLifecycleState§last_run_id: Option<RunId>§last_boundary_sequence: Option<u64>§terminal_outcome: Option<InputTerminalOutcome>§attempt_count: u32Implementations§
Source§impl InputStateSeed
impl InputStateSeed
Sourcepub fn new_accepted() -> Self
pub fn new_accepted() -> Self
Freshly-accepted input: no run association, no boundary sequence, no terminal outcome, zero attempts.
Trait Implementations§
Source§impl Clone for InputStateSeed
impl Clone for InputStateSeed
Source§fn clone(&self) -> InputStateSeed
fn clone(&self) -> InputStateSeed
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 InputStateSeed
impl Debug for InputStateSeed
Source§impl PartialEq for InputStateSeed
impl PartialEq for InputStateSeed
Source§fn eq(&self, other: &InputStateSeed) -> bool
fn eq(&self, other: &InputStateSeed) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InputStateSeed
impl StructuralPartialEq for InputStateSeed
Auto Trait Implementations§
impl Freeze for InputStateSeed
impl RefUnwindSafe for InputStateSeed
impl Send for InputStateSeed
impl Sync for InputStateSeed
impl Unpin for InputStateSeed
impl UnsafeUnpin for InputStateSeed
impl UnwindSafe for InputStateSeed
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.