pub enum BackendError {
NotConfigured,
Timeout,
Serialization(Error),
Redis(RedisError),
Pool(PoolError),
PoolCreationError(String),
TaskFailed(String),
}
Expand description
Errors that can occur while storing or retrieving task results.
Variants§
NotConfigured
Raised when a result backend was requested but not configured.
Timeout
Raised when waiting for a task exceeded the provided timeout.
Serialization(Error)
Raised when deserializing or serializing backend payloads failed.
Redis(RedisError)
Raised when a Redis command fails.
Pool(PoolError)
Raised when acquiring a connection from the Redis pool failed.
PoolCreationError(String)
Raised when constructing the Redis pool failed.
TaskFailed(String)
Raised when the task finished with a failure state.
Trait Implementations§
Source§impl Debug for BackendError
impl Debug for BackendError
Source§impl Display for BackendError
impl Display for BackendError
Source§impl Error for BackendError
impl Error for BackendError
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<BackendError> for CeleryError
impl From<BackendError> for CeleryError
Source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BackendError
impl From<Error> for BackendError
Source§impl From<PoolError<RedisError>> for BackendError
impl From<PoolError<RedisError>> for BackendError
Source§impl From<RedisError> for BackendError
impl From<RedisError> for BackendError
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 BackendError
impl !RefUnwindSafe for BackendError
impl Send for BackendError
impl Sync for BackendError
impl Unpin for BackendError
impl !UnwindSafe for BackendError
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