pub struct TeardownError(/* private fields */);Expand description
Ordered immutable Agent teardown failures.
Error::source returns the first AttributedError. Remaining failures
stay reachable only through entries.
Implementations§
Source§impl TeardownError
impl TeardownError
Sourcepub fn entries(&self) -> &[AttributedError]
pub fn entries(&self) -> &[AttributedError]
Returns failures in hook registration order.
Trait Implementations§
Source§impl Clone for TeardownError
impl Clone for TeardownError
Source§impl Debug for TeardownError
impl Debug for TeardownError
Source§impl Display for TeardownError
impl Display for TeardownError
Source§impl Error for TeardownError
impl Error for TeardownError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The first teardown failure, in registration order.
A generic source() walk therefore sees that first AttributedError
and stops. Remaining failures are not on this chain;
entries is the ordered list. This is not “the most
severe” entry — the type does not own a severity order.
Agent::close never constructs an empty aggregate:
it wraps CloseError::Hooks only when failures is nonempty. source()
is therefore Some whenever close produces this type.
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for TeardownError
impl !UnwindSafe for TeardownError
impl Freeze for TeardownError
impl Send for TeardownError
impl Sync for TeardownError
impl Unpin for TeardownError
impl UnsafeUnpin for TeardownError
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