pub enum SpanOutcome {
Continue,
Modified,
ShortCircuit,
Replace,
Deadline,
Trap,
InstantiateError,
Unavailable,
InvalidOutput,
}Expand description
What a filter execution resulted in — the union of its intentional decision and the
RunError failure modes, so a span records traps and deadlines as faithfully as a
continue. Maps to an OTel Status (the decisions are Ok; the faults are Error).
Variants§
Continue
Modified
ShortCircuit
Replace
A response filter replaced the upstream response with a synthesised one (ADR 000073).
Deadline
Trap
InstantiateError
InvalidOutput
The guest returned cleanly but its output failed header validation (ADR 000071) —
distinct from Trap so a misbehaving-but-alive filter is tellable from a crashing one.
Implementations§
Trait Implementations§
Source§impl Clone for SpanOutcome
impl Clone for SpanOutcome
Source§fn clone(&self) -> SpanOutcome
fn clone(&self) -> SpanOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpanOutcome
Source§impl Debug for SpanOutcome
impl Debug for SpanOutcome
impl Eq for SpanOutcome
Source§impl From<&RequestDecision> for SpanOutcome
impl From<&RequestDecision> for SpanOutcome
Source§fn from(d: &RequestDecision) -> SpanOutcome
fn from(d: &RequestDecision) -> SpanOutcome
Converts to this type from the input type.
Source§impl From<&ResponseDecision> for SpanOutcome
impl From<&ResponseDecision> for SpanOutcome
Source§fn from(d: &ResponseDecision) -> SpanOutcome
fn from(d: &ResponseDecision) -> SpanOutcome
Converts to this type from the input type.
Source§impl From<&RunError> for SpanOutcome
impl From<&RunError> for SpanOutcome
Source§fn from(e: &RunError) -> SpanOutcome
fn from(e: &RunError) -> SpanOutcome
Converts to this type from the input type.
Source§impl PartialEq for SpanOutcome
impl PartialEq for SpanOutcome
impl StructuralPartialEq for SpanOutcome
Auto Trait Implementations§
impl Freeze for SpanOutcome
impl RefUnwindSafe for SpanOutcome
impl Send for SpanOutcome
impl Sync for SpanOutcome
impl Unpin for SpanOutcome
impl UnsafeUnpin for SpanOutcome
impl UnwindSafe for SpanOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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