pub struct InteractionOutcome {
pub completed: bool,
pub rejection: Option<InteractionRejection>,
pub interruption: Option<InteractionInterruption>,
}Expand description
Result of one checked simulation step; no events are stored internally.
completed is the sole accepted completion signal. A rejection never
completes or advances progress. A pair switch can interrupt the old hold and
complete the new one on the same tick if enough simulation time is supplied.
Fields§
§completed: boolTrue exactly once when this hold completes; apply rewards/feedback here.
rejection: Option<InteractionRejection>The gate preventing progress, or None for an eligible step.
interruption: Option<InteractionInterruption>The unfinished hold discarded by this step, if any.
Trait Implementations§
Source§impl Clone for InteractionOutcome
impl Clone for InteractionOutcome
Source§fn clone(&self) -> InteractionOutcome
fn clone(&self) -> InteractionOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 InteractionOutcome
impl Debug for InteractionOutcome
Source§impl PartialEq for InteractionOutcome
impl PartialEq for InteractionOutcome
impl Copy for InteractionOutcome
impl Eq for InteractionOutcome
impl StructuralPartialEq for InteractionOutcome
Auto Trait Implementations§
impl Freeze for InteractionOutcome
impl RefUnwindSafe for InteractionOutcome
impl Send for InteractionOutcome
impl Sync for InteractionOutcome
impl Unpin for InteractionOutcome
impl UnwindSafe for InteractionOutcome
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