pub enum RuntimeTerminalOutcome {
Succeeded,
Failed {
error_code: AttemptFailureCode,
error_status: AttemptFailureStatus,
},
Cancelled,
Dropped,
Panicked,
}Expand description
Query terminal outcome stored outside the bounded record collection.
Variants§
Succeeded
Execution reached successful completion.
Failed
A terminal error classified from the terminal structured error itself.
Fields
§
error_code: AttemptFailureCodeStable machine identity of the terminal error.
§
error_status: AttemptFailureStatusSource condition classification; recovery requires the sealed retry advice.
Cancelled
Caller cancellation or deadline expiry ended execution.
Dropped
The attempt or result stream was dropped before another terminal outcome.
Panicked
An unwind ended the attempt.
Implementations§
Source§impl RuntimeTerminalOutcome
impl RuntimeTerminalOutcome
Sourcepub const fn stable_label(&self) -> &'static str
pub const fn stable_label(&self) -> &'static str
Stable closed label for bounded post-seal projections.
Sourcepub const fn failed(summary: &AttemptFailureSummary) -> Self
pub const fn failed(summary: &AttemptFailureSummary) -> Self
Copies the stable code and status from a primary failure summary.
Sourcepub fn from_query_error(error: &QueryError) -> Self
pub fn from_query_error(error: &QueryError) -> Self
Reduces a native error to its closed terminal projection. Attempt owners must still call the borrowed summary recorder first when they publish an attempt report.
Trait Implementations§
Source§impl Clone for RuntimeTerminalOutcome
impl Clone for RuntimeTerminalOutcome
Source§impl Debug for RuntimeTerminalOutcome
impl Debug for RuntimeTerminalOutcome
Source§impl<'de> Deserialize<'de> for RuntimeTerminalOutcome
impl<'de> Deserialize<'de> for RuntimeTerminalOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RuntimeTerminalOutcome
Source§impl PartialEq for RuntimeTerminalOutcome
impl PartialEq for RuntimeTerminalOutcome
Source§impl Serialize for RuntimeTerminalOutcome
impl Serialize for RuntimeTerminalOutcome
impl StructuralPartialEq for RuntimeTerminalOutcome
Auto Trait Implementations§
impl Freeze for RuntimeTerminalOutcome
impl RefUnwindSafe for RuntimeTerminalOutcome
impl Send for RuntimeTerminalOutcome
impl Sync for RuntimeTerminalOutcome
impl Unpin for RuntimeTerminalOutcome
impl UnsafeUnpin for RuntimeTerminalOutcome
impl UnwindSafe for RuntimeTerminalOutcome
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<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