pub struct InvocationBudgetContext { /* private fields */ }Expand description
Payload-free trusted request to an admission/accounting implementation.
Implementations§
Source§impl InvocationBudgetContext
impl InvocationBudgetContext
Sourcepub const fn provenance(&self) -> &AgentResultProvenance
pub const fn provenance(&self) -> &AgentResultProvenance
Returns immutable admitted run provenance loaded from storage.
Sourcepub const fn boundary(&self) -> InvocationBoundaryKind
pub const fn boundary(&self) -> InvocationBoundaryKind
Returns the external boundary being admitted.
Sourcepub const fn invocation_id(&self) -> InvocationId
pub const fn invocation_id(&self) -> InvocationId
Returns the stable logical invocation identity.
Sourcepub const fn attempt_id(&self) -> AttemptId
pub const fn attempt_id(&self) -> AttemptId
Returns the proposed physical attempt identity.
Sourcepub const fn intent_digest(&self) -> Digest
pub const fn intent_digest(&self) -> Digest
Returns the exact durable invocation-intent checksum.
Sourcepub const fn observed_at(&self) -> Timestamp
pub const fn observed_at(&self) -> Timestamp
Returns the trusted clock used to evaluate remaining capacity.
Trait Implementations§
Source§impl Clone for InvocationBudgetContext
impl Clone for InvocationBudgetContext
Auto Trait Implementations§
impl Forget for InvocationBudgetContext
impl Freeze for InvocationBudgetContext
impl Move for InvocationBudgetContext
impl RefUnwindSafe for InvocationBudgetContext
impl Send for InvocationBudgetContext
impl Sync for InvocationBudgetContext
impl Unpin for InvocationBudgetContext
impl UnsafeUnpin for InvocationBudgetContext
impl UnwindSafe for InvocationBudgetContext
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
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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