pub enum AttemptOutcome {
Ok,
Error,
Timeout,
Cancelled,
Retry,
}Expand description
Terminal attempt outcome label for ff_attempt_outcome_total.
The variant set is fixed at 5 by the Observability RFC prereq #4
adjudication so cardinality stays bounded at 5 × N lanes. Kept
feature-agnostic (defined here, not in real/shim) so call sites
can construct the value identically whether metrics are compiled in
or not.
Variants§
Ok
Attempt completed successfully (terminal-ok / complete FCALL).
Error
Attempt failed terminally — no retries left.
Timeout
Attempt failed with classification = Timeout.
Cancelled
Attempt was cancelled (worker or flow-level cancel).
Retry
Attempt failed but a retry was scheduled.
Implementations§
Source§impl AttemptOutcome
impl AttemptOutcome
Sourcepub fn as_stable_str(&self) -> &'static str
pub fn as_stable_str(&self) -> &'static str
Stable &'static str label — matches the Prometheus exposition.
Trait Implementations§
Source§impl Clone for AttemptOutcome
impl Clone for AttemptOutcome
Source§fn clone(&self) -> AttemptOutcome
fn clone(&self) -> AttemptOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 AttemptOutcome
impl Debug for AttemptOutcome
Source§impl PartialEq for AttemptOutcome
impl PartialEq for AttemptOutcome
impl Copy for AttemptOutcome
impl Eq for AttemptOutcome
impl StructuralPartialEq for AttemptOutcome
Auto Trait Implementations§
impl Freeze for AttemptOutcome
impl RefUnwindSafe for AttemptOutcome
impl Send for AttemptOutcome
impl Sync for AttemptOutcome
impl Unpin for AttemptOutcome
impl UnsafeUnpin for AttemptOutcome
impl UnwindSafe for AttemptOutcome
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