pub enum DeliverError {
Permanent(String),
Transient(String),
}Expand description
Why a delivery failed, which decides whether the worker tries again.
Variants§
Permanent(String)
The destination is wrong and will stay wrong — a malformed webhook URL, a revoked token, a 404 channel. Retrying just burns attempts and delays the dead-letter that tells someone to fix the config.
Transient(String)
A rate limit, a timeout, a 5xx. Worth another go.
Implementations§
Source§impl DeliverError
impl DeliverError
Trait Implementations§
Source§impl Debug for DeliverError
impl Debug for DeliverError
Auto Trait Implementations§
impl Freeze for DeliverError
impl RefUnwindSafe for DeliverError
impl Send for DeliverError
impl Sync for DeliverError
impl Unpin for DeliverError
impl UnsafeUnpin for DeliverError
impl UnwindSafe for DeliverError
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> 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 moreCreates a shared type from an unshared type.