pub struct ReducerDelta {Show 13 fields
pub run_id: String,
pub sequence: u64,
pub applied: bool,
pub status_before: StrategyRunStatus,
pub status_after: StrategyRunStatus,
pub entered: Vec<VisitFact>,
pub bindings: Vec<InputBinding>,
pub results: Vec<ResultRef>,
pub joins_satisfied: Vec<JoinSatisfaction>,
pub join_arrivals: Vec<JoinArrivalReceipt>,
pub shared_writes: Vec<SharedWriteReceipt>,
pub settled_commands: Vec<String>,
pub emitted_commands: Vec<String>,
}Expand description
What one reducer step changed.
The delta is what a store persists incrementally, so it is built from the facts the machine actually produced rather than recomputed from the two snapshots: a consumer that applied only the delta must hold exactly the snapshot the step returned, and the differential test checks that claim against an independent diff instead of trusting it.
Fields§
§run_id: String§sequence: u64§applied: bool§status_before: StrategyRunStatus§status_after: StrategyRunStatus§entered: Vec<VisitFact>§bindings: Vec<InputBinding>§results: Vec<ResultRef>Results this step made final, in completion order.
joins_satisfied: Vec<JoinSatisfaction>§join_arrivals: Vec<JoinArrivalReceipt>Join arrivals this step recorded or refused. An arrival is causal state even before the join fires, so a consumer that applies only the delta must receive it here rather than re-deriving it.
settled_commands: Vec<String>§emitted_commands: Vec<String>Trait Implementations§
Source§impl Clone for ReducerDelta
impl Clone for ReducerDelta
Source§fn clone(&self) -> ReducerDelta
fn clone(&self) -> ReducerDelta
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 ReducerDelta
impl Debug for ReducerDelta
Source§impl Default for ReducerDelta
impl Default for ReducerDelta
Source§fn default() -> ReducerDelta
fn default() -> ReducerDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReducerDelta
impl<'de> Deserialize<'de> for ReducerDelta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReducerDelta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReducerDelta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReducerDelta
impl PartialEq for ReducerDelta
Source§impl Serialize for ReducerDelta
impl Serialize for ReducerDelta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ReducerDelta
Auto Trait Implementations§
impl Forget for ReducerDelta
impl Freeze for ReducerDelta
impl Move for ReducerDelta
impl RefUnwindSafe for ReducerDelta
impl Send for ReducerDelta
impl Sync for ReducerDelta
impl Unpin for ReducerDelta
impl UnsafeUnpin for ReducerDelta
impl UnwindSafe for ReducerDelta
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