pub enum RoutingKeyError {
InvalidKey(String, &'static str),
AbstractPublishKey(String),
}Expand description
Error indicating what went wrong in setting up a ConsumerRoutingKey or a PublisherRoutingKey
Variants§
InvalidKey(String, &'static str)
Got a routing key that does not match the topic pattern associated with the TopicBus.
AbstractPublishKey(String)
Got a publish routing key that contained wildcards.
Trait Implementations§
Source§impl Debug for RoutingKeyError
impl Debug for RoutingKeyError
Source§impl Display for RoutingKeyError
impl Display for RoutingKeyError
Source§impl Error for RoutingKeyError
impl Error for RoutingKeyError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for RoutingKeyError
impl RefUnwindSafe for RoutingKeyError
impl Send for RoutingKeyError
impl Sync for RoutingKeyError
impl Unpin for RoutingKeyError
impl UnwindSafe for RoutingKeyError
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