#[non_exhaustive]pub enum Error {
Database(Error),
Encode(Error),
Job(String),
NotACode {
what: &'static str,
},
NotATenant,
Schedule(String),
Overflow(&'static str),
OutOfRange(&'static str),
}Expand description
What went wrong.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Database(Error)
The database refused or could not be reached.
Encode(Error)
A job’s arguments could not be encoded.
Job(String)
A job failed, or the queue met something it cannot read.
NotACode
Who or why, given for a person’s act, or a job’s unique key, is empty,
longer than MAX_REASON_CHARS, or has a line break.
NotATenant
A job’s tenant is not a tenant id: see is_tenant_id.
Schedule(String)
A schedule is a mistake in code, found at boot: a name that is empty, over 200 characters, or used twice, an interval under a second, or a cron pattern that does not parse or names no time to come.
Overflow(&'static str)
A figure was too large to compute: a count, or a time that does not fit.
OutOfRange(&'static str)
A figure given is out of range, so it is refused, not held to a limit: a setting
in QueueOptions, or the delay of a RetryAfter.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more