pub struct WallClockBudgetExceeded {
pub elapsed_secs: u64,
pub limit_secs: u64,
}Expand description
The run-level wall-clock budget (agent.max_wall_secs) is exhausted.
Raised BEFORE any new billable request is issued once the run’s wall
budget has elapsed, and in place of a generic network/timeout error when a
retry wait outlives the budget. This is deliberately NOT
ApiError::Network: agent error-recovery classifies network errors as
transient and retries/reroutes them (which kept issuing billed requests
after the budget expired), while this type plus its canonical
"Wall-clock timeout: <elapsed>s >= <limit>s" message (same wording as
Agent::enforce_hard_budgets) is filed as a budget stop.
Fields§
§elapsed_secs: u64Seconds elapsed since the first billable request of this run.
limit_secs: u64Configured agent.max_wall_secs limit.
Trait Implementations§
Source§impl Clone for WallClockBudgetExceeded
impl Clone for WallClockBudgetExceeded
Source§fn clone(&self) -> WallClockBudgetExceeded
fn clone(&self) -> WallClockBudgetExceeded
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WallClockBudgetExceeded
impl Debug for WallClockBudgetExceeded
Source§impl Display for WallClockBudgetExceeded
impl Display for WallClockBudgetExceeded
Source§impl Error for WallClockBudgetExceeded
impl Error for WallClockBudgetExceeded
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for WallClockBudgetExceeded
impl RefUnwindSafe for WallClockBudgetExceeded
impl Send for WallClockBudgetExceeded
impl Sync for WallClockBudgetExceeded
impl Unpin for WallClockBudgetExceeded
impl UnsafeUnpin for WallClockBudgetExceeded
impl UnwindSafe for WallClockBudgetExceeded
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.