pub struct ExecutionOutcome { /* private fields */ }Expand description
One closed business outcome of routing an accepted effective call.
A successful route always carries both the model-visible closed result and the disposition fact later published by lifecycle observations, so callers never re-derive the disposition from the result’s shape.
Implementations§
Source§impl ExecutionOutcome
impl ExecutionOutcome
Sourcepub const fn result(&self) -> &ToolResult
pub const fn result(&self) -> &ToolResult
Returns the model-visible closed result.
Sourcepub const fn disposition(&self) -> CallDisposition
pub const fn disposition(&self) -> CallDisposition
Returns the stable disposition reached by this call.
Sourcepub fn into_parts(self) -> (ToolResult, CallDisposition)
pub fn into_parts(self) -> (ToolResult, CallDisposition)
Transfers the closed result and its disposition.
Trait Implementations§
Source§impl Clone for ExecutionOutcome
impl Clone for ExecutionOutcome
Auto Trait Implementations§
impl Freeze for ExecutionOutcome
impl RefUnwindSafe for ExecutionOutcome
impl Send for ExecutionOutcome
impl Sync for ExecutionOutcome
impl Unpin for ExecutionOutcome
impl UnsafeUnpin for ExecutionOutcome
impl UnwindSafe for ExecutionOutcome
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