Enum minerva_dispatch::error::DispatchError
source · [−]pub enum DispatchError {
Connection {
consumer_name: String,
service_name: String,
},
Delivery {
consumer_name: String,
},
Ack {
consumer_name: String,
},
}
Expand description
Describes an error pertaining a message dispatch. These kinds of errors may arise before or after trying to process the message.
Variants
Connection
Describes a connection error while attempting to connect this consumer to a given queue or channel.
Delivery
Fields
consumer_name: String
Describes an error while receiving a message from the queue or channel.
Ack
Fields
consumer_name: String
Describes an error while trying to send back and acknowledgement signal to the queue or channel.
Trait Implementations
sourceimpl Debug for DispatchError
impl Debug for DispatchError
sourceimpl Display for DispatchError
impl Display for DispatchError
sourceimpl Error for DispatchErrorwhere
Self: Debug + Display,
impl Error for DispatchErrorwhere
Self: Debug + Display,
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl ErrorCompat for DispatchError
impl ErrorCompat for DispatchError
fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moresourceimpl<__T0> IntoError<DispatchError> for AckSnafu<__T0>where
DispatchError: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<DispatchError> for AckSnafu<__T0>where
DispatchError: Error + ErrorCompat,
__T0: Into<String>,
type Source = NoneError
type Source = NoneError
The underlying error
sourcefn into_error(self, error: Self::Source) -> DispatchError
fn into_error(self, error: Self::Source) -> DispatchError
Combine the information to produce the error
sourceimpl<__T0, __T1> IntoError<DispatchError> for ConnectionSnafu<__T0, __T1>where
DispatchError: Error + ErrorCompat,
__T0: Into<String>,
__T1: Into<String>,
impl<__T0, __T1> IntoError<DispatchError> for ConnectionSnafu<__T0, __T1>where
DispatchError: Error + ErrorCompat,
__T0: Into<String>,
__T1: Into<String>,
type Source = NoneError
type Source = NoneError
The underlying error
sourcefn into_error(self, error: Self::Source) -> DispatchError
fn into_error(self, error: Self::Source) -> DispatchError
Combine the information to produce the error
sourceimpl<__T0> IntoError<DispatchError> for DeliverySnafu<__T0>where
DispatchError: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<DispatchError> for DeliverySnafu<__T0>where
DispatchError: Error + ErrorCompat,
__T0: Into<String>,
type Source = NoneError
type Source = NoneError
The underlying error
sourcefn into_error(self, error: Self::Source) -> DispatchError
fn into_error(self, error: Self::Source) -> DispatchError
Combine the information to produce the error
Auto Trait Implementations
impl RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnwindSafe for DispatchError
Blanket Implementations
impl<T> AsErrorSource for Twhere
T: 'static + Error,
impl<T> AsErrorSource for Twhere
T: 'static + Error,
fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers. Read more
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request