pub enum BrokerError {
InvalidBrokerUrl(String),
UnknownQueue(String),
NotConnected,
IoError(Error),
DeserializeError(Error),
BadRoutingPattern(BadRoutingPattern),
ProtocolError(ProtocolError),
AMQPError(Error),
RedisError(RedisError),
}
Expand description
Errors that can occur at the broker level.
Variants§
InvalidBrokerUrl(String)
Raised when a broker URL can’t be parsed.
UnknownQueue(String)
The queue you’re attempting to use has not been defined.
NotConnected
Broker is disconnected.
IoError(Error)
Any IO error that could occur.
DeserializeError(Error)
Deserialize error
BadRoutingPattern(BadRoutingPattern)
Routing pattern error
ProtocolError(ProtocolError)
Protocol error
AMQPError(Error)
Any other AMQP error that could happen.
RedisError(RedisError)
Any other Redis error that could happen.
Implementations§
Source§impl BrokerError
impl BrokerError
pub fn is_connection_error(&self) -> bool
Trait Implementations§
Source§impl Debug for BrokerError
impl Debug for BrokerError
Source§impl Display for BrokerError
impl Display for BrokerError
Source§impl Error for BrokerError
impl Error for BrokerError
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<BadRoutingPattern> for BrokerError
impl From<BadRoutingPattern> for BrokerError
Source§fn from(source: BadRoutingPattern) -> Self
fn from(source: BadRoutingPattern) -> Self
Converts to this type from the input type.
Source§impl From<BrokerError> for BeatError
impl From<BrokerError> for BeatError
Source§fn from(source: BrokerError) -> Self
fn from(source: BrokerError) -> Self
Converts to this type from the input type.
Source§impl From<BrokerError> for CeleryError
impl From<BrokerError> for CeleryError
Source§fn from(source: BrokerError) -> Self
fn from(source: BrokerError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BrokerError
impl From<Error> for BrokerError
Source§impl From<Error> for BrokerError
impl From<Error> for BrokerError
Source§impl From<Error> for BrokerError
impl From<Error> for BrokerError
Source§impl From<ProtocolError> for BrokerError
impl From<ProtocolError> for BrokerError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<RedisError> for BrokerError
impl From<RedisError> for BrokerError
Source§fn from(source: RedisError) -> Self
fn from(source: RedisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BrokerError
impl !RefUnwindSafe for BrokerError
impl Send for BrokerError
impl Sync for BrokerError
impl Unpin for BrokerError
impl !UnwindSafe for BrokerError
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