pub enum Resolution {
Approve,
Deny {
reason: String,
},
OwnerDeclined {
request: OwnerApprovalRequest,
reason: String,
},
Unanswered {
reason: String,
},
}Expand description
How to settle the call an interrupted run is waiting on.
Variants§
Approve
Run the call. The hook that interrupted is not asked again; hooks registered after it still are, and may deny or interrupt.
Deny
Refuse it. The reason goes back to the model as the tool result.
OwnerDeclined
The owner refused a call that was interrupted for another reason and
put to them by the resolver. Binds the run exactly as a denied
InterruptKind::OwnerApproval does.
Unanswered
Nobody answered the owner’s card: it expired, could not be delivered, or the turn was cancelled while it waited. The call is not run, but nothing is remembered as declined, and the reason goes back to the model marked as no answer, never as the owner’s refusal.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§impl Debug for Resolution
impl Debug for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Forget for Resolution
impl Freeze for Resolution
impl Move for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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