Struct AgentExecutionCapability
pub struct AgentExecutionCapability { /* private fields */ }Expand description
Explicit capability for admitting work against the authority-owned live
config. The capability is cheap to clone; each call to admit owns a
distinct alias lease, while the config snapshot is taken only after that
lease is acquired.
Implementations§
Source§impl AgentExecutionCapability
impl AgentExecutionCapability
pub fn capture_selection(&self) -> AgentExecutionSelection
pub fn from_parts( config: LiveConfigHandle, agent_lifecycle: AgentLifecycleCoordinator, ) -> Self
pub fn config_handle(&self) -> LiveConfigHandle
pub fn agent_lifecycle_generation(&self, alias: &str) -> u64
Sourcepub fn resolve_and_admit(
&self,
requested_alias: &str,
) -> Result<AgentExecutionAdmission, AgentExecutionError>
pub fn resolve_and_admit( &self, requested_alias: &str, ) -> Result<AgentExecutionAdmission, AgentExecutionError>
Resolve a case-insensitive alias from the authoritative snapshot and admit the canonical alias before taking the usable target snapshot.
Sourcepub fn admit(
&self,
alias: &str,
) -> Result<AgentExecutionAdmission, AgentExecutionError>
pub fn admit( &self, alias: &str, ) -> Result<AgentExecutionAdmission, AgentExecutionError>
Admit the current generation for a target alias.
Sourcepub fn admit_at(
&self,
alias: &str,
generation: u64,
) -> Result<AgentExecutionAdmission, AgentExecutionError>
pub fn admit_at( &self, alias: &str, generation: u64, ) -> Result<AgentExecutionAdmission, AgentExecutionError>
Admit a queued producer against the generation it carried when it was created. This deliberately does not mint a new generation for stale queued work.
Trait Implementations§
Source§impl Clone for AgentExecutionCapability
impl Clone for AgentExecutionCapability
Source§fn clone(&self) -> AgentExecutionCapability
fn clone(&self) -> AgentExecutionCapability
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 AgentExecutionCapability
impl !UnwindSafe for AgentExecutionCapability
impl Freeze for AgentExecutionCapability
impl Send for AgentExecutionCapability
impl Sync for AgentExecutionCapability
impl Unpin for AgentExecutionCapability
impl UnsafeUnpin for AgentExecutionCapability
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