pub enum DispatchError {
NoConsumerAvailable,
UnknownConsumerSelected(String),
Evaluation(FunctionError),
Conversation(String),
}Expand description
Failure surfaced when a message cannot be dispatched to any consumer.
Variants§
NoConsumerAvailable
The routing function selected no consumer from the available set.
UnknownConsumerSelected(String)
The routing function selected a consumer that is not in the group.
Evaluation(FunctionError)
Evaluating the group’s routing function failed under supervision.
Conversation(String)
The dispatch conversation infrastructure could not be driven.
Trait Implementations§
Source§impl Clone for DispatchError
impl Clone for DispatchError
Source§fn clone(&self) -> DispatchError
fn clone(&self) -> DispatchError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
impl Eq for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
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()
Source§impl From<FunctionError> for DispatchError
impl From<FunctionError> for DispatchError
Source§fn from(source: FunctionError) -> Self
fn from(source: FunctionError) -> Self
Converts to this type from the input type.
Source§impl From<LiminalError> for DispatchError
impl From<LiminalError> for DispatchError
Source§fn from(error: LiminalError) -> Self
fn from(error: LiminalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DispatchError
impl PartialEq for DispatchError
Source§fn eq(&self, other: &DispatchError) -> bool
fn eq(&self, other: &DispatchError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DispatchError
Auto Trait Implementations§
impl Freeze for DispatchError
impl RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
impl UnwindSafe for DispatchError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.