pub enum RateLimitQueueError {
RateLimited,
Other(QueueError),
}Expand description
Error returned by RateLimitedQueue::enqueue.
Variants§
RateLimited
The limiter refused the job; nothing was enqueued.
Other(QueueError)
The wrapped queue rejected the job.
Trait Implementations§
Source§impl Debug for RateLimitQueueError
impl Debug for RateLimitQueueError
Source§impl Display for RateLimitQueueError
impl Display for RateLimitQueueError
Source§impl Error for RateLimitQueueError
impl Error for RateLimitQueueError
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()
Source§impl From<QueueError> for RateLimitQueueError
impl From<QueueError> for RateLimitQueueError
Source§fn from(e: QueueError) -> Self
fn from(e: QueueError) -> Self
Converts to this type from the input type.
Source§impl From<RateLimitQueueError> for QueueError
impl From<RateLimitQueueError> for QueueError
Source§fn from(e: RateLimitQueueError) -> Self
fn from(e: RateLimitQueueError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RateLimitQueueError
impl RefUnwindSafe for RateLimitQueueError
impl Send for RateLimitQueueError
impl Sync for RateLimitQueueError
impl Unpin for RateLimitQueueError
impl UnsafeUnpin for RateLimitQueueError
impl UnwindSafe for RateLimitQueueError
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