Struct AgentExecutionAdmission
pub struct AgentExecutionAdmission { /* private fields */ }Expand description
An admitted target snapshot and its owned lifecycle lease. Clones share this one logical lease so detached continuations can outlive their caller without releasing admission early.
Implementations§
Source§impl AgentExecutionAdmission
impl AgentExecutionAdmission
pub fn config(&self) -> Arc<Config> ⓘ
pub fn capability(&self) -> AgentExecutionCapability
pub fn alias(&self) -> &str
pub fn generation(&self) -> u64
pub fn lease(&self) -> Arc<AgentTurnLease> ⓘ
Sourcepub fn revalidate(&self) -> Result<(), AgentExecutionError>
pub fn revalidate(&self) -> Result<(), AgentExecutionError>
Re-check the generation immediately before a queued admission begins target construction. Holding the turn lease keeps deletion out, but a daemon shutdown may close the generation while a detached worker is still queued; that worker must fail before provider, tool, or target persistence work starts.
Trait Implementations§
Source§impl Clone for AgentExecutionAdmission
impl Clone for AgentExecutionAdmission
Source§fn clone(&self) -> AgentExecutionAdmission
fn clone(&self) -> AgentExecutionAdmission
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AgentExecutionAdmission
impl !UnwindSafe for AgentExecutionAdmission
impl Freeze for AgentExecutionAdmission
impl Send for AgentExecutionAdmission
impl Sync for AgentExecutionAdmission
impl Unpin for AgentExecutionAdmission
impl UnsafeUnpin for AgentExecutionAdmission
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more