pub struct DetachedToolExecutionPolicy { /* private fields */ }Expand description
Submission and restart declaration for a detached tool implementation.
Implementations§
Source§impl DetachedToolExecutionPolicy
impl DetachedToolExecutionPolicy
pub fn new( runner: RunnerIdentity, restart_class: RestartClass, idempotency_scope: IdempotencyScope, submission_timeout: Duration, ) -> Result<Self, ToolExecutionDeclarationError>
pub fn with_credential_scopes<I, S>(self, scopes: I) -> Self
pub fn runner(&self) -> &RunnerIdentity
pub const fn restart_class(&self) -> RestartClass
pub const fn idempotency_scope(&self) -> IdempotencyScope
pub const fn submission_timeout(&self) -> Duration
pub fn credential_scopes(&self) -> &BTreeSet<String>
Trait Implementations§
Source§impl Clone for DetachedToolExecutionPolicy
impl Clone for DetachedToolExecutionPolicy
Source§fn clone(&self) -> DetachedToolExecutionPolicy
fn clone(&self) -> DetachedToolExecutionPolicy
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 DetachedToolExecutionPolicy
impl Debug for DetachedToolExecutionPolicy
impl Eq for DetachedToolExecutionPolicy
impl StructuralPartialEq for DetachedToolExecutionPolicy
Auto Trait Implementations§
impl Freeze for DetachedToolExecutionPolicy
impl RefUnwindSafe for DetachedToolExecutionPolicy
impl Send for DetachedToolExecutionPolicy
impl Sync for DetachedToolExecutionPolicy
impl Unpin for DetachedToolExecutionPolicy
impl UnsafeUnpin for DetachedToolExecutionPolicy
impl UnwindSafe for DetachedToolExecutionPolicy
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.