pub struct AttemptFailureSummary { /* private fields */ }Expand description
Bounded retained classification for a primary terminal failure.
Implementations§
Source§impl AttemptFailureSummary
impl AttemptFailureSummary
Sourcepub fn from_native_error(
error: &QueryError,
operation: AttemptFailureOperation,
) -> Self
pub fn from_native_error( error: &QueryError, operation: AttemptFailureOperation, ) -> Self
Captures a native error by reference without touching its source chain.
The native message is deliberately not copied into the stable report:
it can contain arbitrary application metadata even when it does not
match a known URI, credential, or SQL pattern. The returned
query_planning::error::QueryError keeps that complete source text on its
ordinary error path.
Sourcepub const fn datafusion_fallback() -> Self
pub const fn datafusion_fallback() -> Self
Closed root-adapter fallback. It intentionally retains no adapter-side display text, source-chain text, SQL, URI, or credential material.
Sourcepub const fn backend_closing() -> Self
pub const fn backend_closing() -> Self
Returns a text-free admission failure for a closing backend.
Sourcepub const fn origin(&self) -> AttemptFailureOrigin
pub const fn origin(&self) -> AttemptFailureOrigin
Returns the layer that classified this failure.
Sourcepub const fn code(&self) -> AttemptFailureCode
pub const fn code(&self) -> AttemptFailureCode
Returns the closed machine identity retained from the primary failure.
Sourcepub const fn status(&self) -> AttemptFailureStatus
pub const fn status(&self) -> AttemptFailureStatus
Returns the source condition classification, without granting retry permission.
Sourcepub const fn operation(&self) -> AttemptFailureOperation
pub const fn operation(&self) -> AttemptFailureOperation
Returns the lifecycle operation in which the failure was recorded.
Trait Implementations§
Source§impl Clone for AttemptFailureSummary
impl Clone for AttemptFailureSummary
Source§impl Debug for AttemptFailureSummary
impl Debug for AttemptFailureSummary
Source§impl<'de> Deserialize<'de> for AttemptFailureSummary
impl<'de> Deserialize<'de> for AttemptFailureSummary
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>,
impl Eq for AttemptFailureSummary
Source§impl PartialEq for AttemptFailureSummary
impl PartialEq for AttemptFailureSummary
Source§impl Serialize for AttemptFailureSummary
impl Serialize for AttemptFailureSummary
impl StructuralPartialEq for AttemptFailureSummary
Auto Trait Implementations§
impl Freeze for AttemptFailureSummary
impl RefUnwindSafe for AttemptFailureSummary
impl Send for AttemptFailureSummary
impl Sync for AttemptFailureSummary
impl Unpin for AttemptFailureSummary
impl UnsafeUnpin for AttemptFailureSummary
impl UnwindSafe for AttemptFailureSummary
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
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
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> ⓘ
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 more