pub struct ErrorSummary { /* private fields */ }Expand description
Classification and text of a failure recorded inside another error.
Composite failures (a rollback that failed after a checkout stopped, one remote’s failure
among several promisor remotes) keep each inner failure as a summary instead of nesting
another Error: the outer variant names what happened, and the summary
keeps the inner failure’s stable kind, its area, its
message, and whether it was a cancellation.
The summary is one pointer wide so composite variants stay small.
Implementations§
Source§impl ErrorSummary
impl ErrorSummary
Sourcepub fn kind(&self) -> &'static str
pub fn kind(&self) -> &'static str
The inner failure’s Error::kind_name.
Sourcepub fn area(&self) -> &'static str
pub fn area(&self) -> &'static str
The inner failure’s Error::area.
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Whether the inner failure was a cancellation
(Error::is_cancelled).
Trait Implementations§
Source§impl Clone for ErrorSummary
impl Clone for ErrorSummary
Source§impl Debug for ErrorSummary
impl Debug for ErrorSummary
Source§impl Display for ErrorSummary
impl Display for ErrorSummary
impl Eq for ErrorSummary
Source§impl Error for ErrorSummary
impl Error for ErrorSummary
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<&Error> for ErrorSummary
impl From<&Error> for ErrorSummary
Source§impl From<Error> for ErrorSummary
impl From<Error> for ErrorSummary
Source§impl PartialEq for ErrorSummary
impl PartialEq for ErrorSummary
impl StructuralPartialEq for ErrorSummary
Auto Trait Implementations§
impl Forget for ErrorSummary
impl Freeze for ErrorSummary
impl RefUnwindSafe for ErrorSummary
impl Send for ErrorSummary
impl Sync for ErrorSummary
impl Unpin for ErrorSummary
impl UnsafeUnpin for ErrorSummary
impl UnwindSafe for ErrorSummary
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> 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§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.