pub struct ToolExecutionResolutionContext { /* private fields */ }Expand description
Typed, caller-owned facts used during pre-dispatch plan resolution.
Implementations§
Source§impl ToolExecutionResolutionContext
impl ToolExecutionResolutionContext
pub const fn new(deadlines: ToolDeadlineChain) -> Self
pub fn deadlines(&self) -> &ToolDeadlineChain
pub fn with_deadline( &self, contributor: ToolDeadlineContributor, ) -> Result<Self, DeadlineChainError>
Sourcepub fn validate_resolved_plan(
&self,
plan: &ResolvedToolExecutionPlan,
) -> Result<(), ToolExecutionResolutionError>
pub fn validate_resolved_plan( &self, plan: &ResolvedToolExecutionPlan, ) -> Result<(), ToolExecutionResolutionError>
Verify that a resolver only appended deadlines to this caller-owned chain.
Trait Implementations§
Source§impl Clone for ToolExecutionResolutionContext
impl Clone for ToolExecutionResolutionContext
Source§fn clone(&self) -> ToolExecutionResolutionContext
fn clone(&self) -> ToolExecutionResolutionContext
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 moreimpl Eq for ToolExecutionResolutionContext
impl StructuralPartialEq for ToolExecutionResolutionContext
Auto Trait Implementations§
impl Freeze for ToolExecutionResolutionContext
impl RefUnwindSafe for ToolExecutionResolutionContext
impl Send for ToolExecutionResolutionContext
impl Sync for ToolExecutionResolutionContext
impl Unpin for ToolExecutionResolutionContext
impl UnsafeUnpin for ToolExecutionResolutionContext
impl UnwindSafe for ToolExecutionResolutionContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.