pub struct TurnOutcome {
pub context: TurnContext,
pub result: TurnResult,
pub trace: TurnTrace,
}Expand description
A bare-turn entry’s result: the turn context (sealed unless the turn paused), the outcome, and the trace.
Fields§
§context: TurnContextThe sealed active turn at handoff. Serialized through the
turn_context_as_snapshot adapter (see causa_kernel::turn_context_as_snapshot):
the in-memory TurnContext is the mutable fact machine, but
once sealed its snapshot projection is the canonical wire shape.
On reload we rebuild a sealed TurnContext via
from_validated_blocks + seal().
result: TurnResultTerminal result or pause — see TurnResult.
trace: TurnTraceWhat happened during the run — see TurnTrace.
Trait Implementations§
Source§impl Debug for TurnOutcome
impl Debug for TurnOutcome
Source§impl<'de> Deserialize<'de> for TurnOutcome
impl<'de> Deserialize<'de> for TurnOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TurnOutcome
impl RefUnwindSafe for TurnOutcome
impl Send for TurnOutcome
impl Sync for TurnOutcome
impl Unpin for TurnOutcome
impl UnsafeUnpin for TurnOutcome
impl UnwindSafe for TurnOutcome
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