pub struct FailureSummary { /* private fields */ }Expand description
A value-redacted failure summary suitable for execution inspection.
Implementations§
Source§impl FailureSummary
impl FailureSummary
Sourcepub const fn new(
category: FailureCategory,
failure_id: FailureId,
) -> FailureSummary
pub const fn new( category: FailureCategory, failure_id: FailureId, ) -> FailureSummary
Constructs a failure summary from a stable category and opaque ID.
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 ID.
Trait Implementations§
Source§impl Clone for FailureSummary
impl Clone for FailureSummary
Source§fn clone(&self) -> FailureSummary
fn clone(&self) -> FailureSummary
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 FailureSummary
Source§impl Debug for FailureSummary
impl Debug for FailureSummary
impl Eq for FailureSummary
Source§impl Hash for FailureSummary
impl Hash for FailureSummary
Source§impl Ord for FailureSummary
impl Ord for FailureSummary
Source§fn cmp(&self, other: &FailureSummary) -> Ordering
fn cmp(&self, other: &FailureSummary) -> Ordering
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
Source§impl PartialEq for FailureSummary
impl PartialEq for FailureSummary
Source§impl PartialOrd for FailureSummary
impl PartialOrd for FailureSummary
impl StructuralPartialEq for FailureSummary
Auto Trait Implementations§
impl Freeze for FailureSummary
impl RefUnwindSafe for FailureSummary
impl Send for FailureSummary
impl Sync for FailureSummary
impl Unpin for FailureSummary
impl UnsafeUnpin for FailureSummary
impl UnwindSafe for FailureSummary
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> Comparable<K> for Q
impl<Q, K> Comparable<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> 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