#[non_exhaustive]pub struct Permanent(/* private fields */);Expand description
Marks a failure that retrying this start, with this configuration on this runtime, cannot mend:
bad credentials, an unknown database, a runtime the integration does not support, a migration
that failed, a runtime that has shut down (RuntimeShutDown). A
process restart brings a new runtime, which is a different start. A readiness attempt whose
error is one ends the check at once, with no further attempt and no backoff, as
ConnectError::Readiness { reason: Errored(..) }; is_permanent finds one in a
StartupError, so main can tell a start that retrying cannot mend from one it might.
An integration wraps its own error, Err(Permanent::new(e).into()), wherever it returns a
BoxError. Display and source() are the wrapped error’s, so the report reads as the error
itself; the marker adds no text.
Implementations§
Trait Implementations§
Source§impl Error for Permanent
The wrapped error, so a reporter walking the chain reads its cause after the marker’s text.
impl Error for Permanent
The wrapped error, so a reporter walking the chain reads its cause after the marker’s text.
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()