pub enum AttemptFailureCode {
Query(QueryErrorCode),
BackendClosing,
DatafusionError,
Dropped,
Panicked,
StreamSynchronizationFailed,
CleanupCallbackAbandoned,
}Expand description
Failure code of a sealed attempt: a native error’s own code, or one of the
attempt lifecycle outcomes no QueryError carries.
The wire label is the native code’s label and Debug prints the native
code’s name, so wrapping changes no report value.
Variants§
Query(QueryErrorCode)
Failure classified by the canonical native query error taxonomy.
BackendClosing
The backend was closing when the attempt needed service.
DatafusionError
A DataFusion-owned failure terminated the attempt.
Dropped
The result consumer dropped the attempt before normal completion.
Panicked
Attempt execution unwound after a panic.
StreamSynchronizationFailed
Stream completion could not establish safe resource release.
CleanupCallbackAbandoned
A cleanup callback was abandoned before it could report completion.
Implementations§
Source§impl AttemptFailureCode
impl AttemptFailureCode
Sourcepub const fn from_query_error_code(code: QueryErrorCode) -> Self
pub const fn from_query_error_code(code: QueryErrorCode) -> Self
Wraps a native error code as an attempt failure without changing its classification.
Trait Implementations§
Source§impl Clone for AttemptFailureCode
impl Clone for AttemptFailureCode
impl Copy for AttemptFailureCode
Source§impl Debug for AttemptFailureCode
impl Debug for AttemptFailureCode
Source§impl<'de> Deserialize<'de> for AttemptFailureCode
impl<'de> Deserialize<'de> for AttemptFailureCode
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttemptFailureCode
Source§impl Ord for AttemptFailureCode
impl Ord for AttemptFailureCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AttemptFailureCode
impl PartialEq for AttemptFailureCode
Source§impl PartialOrd for AttemptFailureCode
impl PartialOrd for AttemptFailureCode
Source§impl Serialize for AttemptFailureCode
impl Serialize for AttemptFailureCode
impl StructuralPartialEq for AttemptFailureCode
Auto Trait Implementations§
impl Freeze for AttemptFailureCode
impl RefUnwindSafe for AttemptFailureCode
impl Send for AttemptFailureCode
impl Sync for AttemptFailureCode
impl Unpin for AttemptFailureCode
impl UnsafeUnpin for AttemptFailureCode
impl UnwindSafe for AttemptFailureCode
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