pub enum OwnedTurnResult<'h, Ctx: LoopDepth + Send + Sync + 'static> {
Yielded(OwnedYielded<'h, Ctx>),
Completed(Completed),
Error(TurnError),
}Expand description
Result of one turn of the owned tool loop.
Same semantics as TurnResult but without the
provider lifetime parameter — this makes OwnedToolLoopHandle fully
Send + 'static.
Variants§
Yielded(OwnedYielded<'h, Ctx>)
Tools were executed. Consume via resume(), continue_loop(),
inject_and_continue(), or stop().
Completed(Completed)
The loop completed.
Error(TurnError)
An unrecoverable error occurred.
Auto Trait Implementations§
impl<'h, Ctx> Freeze for OwnedTurnResult<'h, Ctx>
impl<'h, Ctx> !RefUnwindSafe for OwnedTurnResult<'h, Ctx>
impl<'h, Ctx> Send for OwnedTurnResult<'h, Ctx>
impl<'h, Ctx> Sync for OwnedTurnResult<'h, Ctx>
impl<'h, Ctx> Unpin for OwnedTurnResult<'h, Ctx>
impl<'h, Ctx> !UnwindSafe for OwnedTurnResult<'h, Ctx>
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