pub struct FaultDescriptor { /* private fields */ }Expand description
The complete framework-owned classification input for one fault.
The descriptor deliberately excludes error text, source chains, item values, parameters, context values, and component-private state.
Implementations§
Source§impl FaultDescriptor
impl FaultDescriptor
Sourcepub const fn new(
phase: FaultPhase,
summary: FailureSummary,
retry_ordinal: RetryOrdinal,
committed_skips: SkipCounts,
transaction_open: bool,
delivery_mode: ChunkDeliveryMode,
) -> Self
pub const fn new( phase: FaultPhase, summary: FailureSummary, retry_ordinal: RetryOrdinal, committed_skips: SkipCounts, transaction_open: bool, delivery_mode: ChunkDeliveryMode, ) -> Self
Constructs the bounded classification input.
Sourcepub const fn phase(self) -> FaultPhase
pub const fn phase(self) -> FaultPhase
Returns the framework phase that produced the fault.
Sourcepub const fn summary(self) -> FailureSummary
pub const fn summary(self) -> FailureSummary
Returns the redacted failure summary.
Sourcepub const fn category(self) -> FailureCategory
pub const fn category(self) -> FailureCategory
Returns the stable failure category.
Sourcepub const fn failure_id(self) -> FailureId
pub const fn failure_id(self) -> FailureId
Returns the opaque diagnostic correlation identifier.
Sourcepub const fn retry_ordinal(self) -> RetryOrdinal
pub const fn retry_ordinal(self) -> RetryOrdinal
Returns the ordinal of the invocation that failed.
Sourcepub const fn committed_skips(self) -> SkipCounts
pub const fn committed_skips(self) -> SkipCounts
Returns the durable committed skip counts inherited by this attempt.
Sourcepub const fn is_transaction_open(self) -> bool
pub const fn is_transaction_open(self) -> bool
Returns whether a chunk transaction was open when the fault occurred.
Sourcepub const fn delivery_mode(self) -> ChunkDeliveryMode
pub const fn delivery_mode(self) -> ChunkDeliveryMode
Returns the delivery mode declared by the step definition.
Trait Implementations§
Source§impl Clone for FaultDescriptor
impl Clone for FaultDescriptor
Source§fn clone(&self) -> FaultDescriptor
fn clone(&self) -> FaultDescriptor
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 FaultDescriptor
Source§impl Debug for FaultDescriptor
impl Debug for FaultDescriptor
impl Eq for FaultDescriptor
Source§impl PartialEq for FaultDescriptor
impl PartialEq for FaultDescriptor
impl StructuralPartialEq for FaultDescriptor
Auto Trait Implementations§
impl Freeze for FaultDescriptor
impl RefUnwindSafe for FaultDescriptor
impl Send for FaultDescriptor
impl Sync for FaultDescriptor
impl Unpin for FaultDescriptor
impl UnsafeUnpin for FaultDescriptor
impl UnwindSafe for FaultDescriptor
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