pub struct SpoolUnhealthyError;Expand description
The spool’s load-shedding gate is currently latched. Callers can
recognize this via anyhow::Error::root_cause (e.g. in the SMTP
server) to produce a peer-safe, actionable response instead of a
generic internal-error message. The Display impl intentionally
matches the bland summary returned by Spool::unhealthy_reason()
so that the wire-facing text is identical regardless of which
layer observes the condition.
Trait Implementations§
Source§impl Debug for SpoolUnhealthyError
impl Debug for SpoolUnhealthyError
Source§impl Display for SpoolUnhealthyError
impl Display for SpoolUnhealthyError
Source§impl Error for SpoolUnhealthyError
impl Error for SpoolUnhealthyError
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()
Auto Trait Implementations§
impl Freeze for SpoolUnhealthyError
impl RefUnwindSafe for SpoolUnhealthyError
impl Send for SpoolUnhealthyError
impl Sync for SpoolUnhealthyError
impl Unpin for SpoolUnhealthyError
impl UnwindSafe for SpoolUnhealthyError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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