pub enum ErrorType {
Transient,
Fatal,
}Expand description
Types of failure when handling a message. Used by the pub sub framework to handle retries/nacks/dead letter queues/etc.
Variants§
Transient
Message processing might succeed if retried after a short delay.
E.g. the message handler encountered a time out when trying to call an API to fulfil the message processing requirements.
The pubsub framework will execute the transient error hook before nacking the message.
Fatal
Message processing will never succeed, no matter how many times you retry or how long you wait.
E.g. the message payload is malformed and cannot be deserialized.
The message will be nacked.
Trait Implementations§
impl Eq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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