pub struct ConversationOutcome {
pub state: ConversationState,
pub result: TurnResult,
pub trace: TurnTrace,
}Expand description
The conversation entry’s counterpart to TurnOutcome: consume/return —
the state comes back with the active turn sealed inside and its outcome
stamped; the host then calls commit (Completed) or abort_turn
(Interrupted).
Fields§
§state: ConversationStateThe state back from the run, its active turn sealed and
outcome-stamped; the host then calls commit (Completed),
abort_turn (Interrupted), or resume_turn (Paused).
result: TurnResultThe active turn’s outcome.
trace: TurnTraceThe active turn’s trace (a resumed continuation appends to the paused phase’s trace).
Trait Implementations§
Source§impl Clone for ConversationOutcome
impl Clone for ConversationOutcome
Source§fn clone(&self) -> ConversationOutcome
fn clone(&self) -> ConversationOutcome
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 ConversationOutcome
impl Debug for ConversationOutcome
Source§impl<'de> Deserialize<'de> for ConversationOutcome
impl<'de> Deserialize<'de> for ConversationOutcome
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 ConversationOutcome
impl RefUnwindSafe for ConversationOutcome
impl Send for ConversationOutcome
impl Sync for ConversationOutcome
impl Unpin for ConversationOutcome
impl UnsafeUnpin for ConversationOutcome
impl UnwindSafe for ConversationOutcome
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