pub struct QueueStatus {
pub queue: String,
pub waiting: u64,
pub delayed: u64,
pub running: u64,
pub oldest_available_at: Option<DateTime<Utc>>,
pub at: DateTime<Utc>,
}Expand description
One queue’s unfinished jobs at a moment, from Queue::status.
Fields§
§queue: StringThe queue.
waiting: u64Jobs available now, waiting for a worker.
delayed: u64Jobs available later (delayed, or released for a retry).
running: u64Jobs reserved by a worker.
oldest_available_at: Option<DateTime<Utc>>When the oldest waiting job became available (None: none waits).
at: DateTime<Utc>When the status was taken (the queue’s clock).
Implementations§
Source§impl QueueStatus
impl QueueStatus
Trait Implementations§
Source§impl Clone for QueueStatus
impl Clone for QueueStatus
Source§impl Debug for QueueStatus
impl Debug for QueueStatus
impl Eq for QueueStatus
Source§impl PartialEq for QueueStatus
impl PartialEq for QueueStatus
Source§impl Serialize for QueueStatus
impl Serialize for QueueStatus
impl StructuralPartialEq for QueueStatus
Auto Trait Implementations§
impl Forget for QueueStatus
impl Freeze for QueueStatus
impl Move for QueueStatus
impl RefUnwindSafe for QueueStatus
impl Send for QueueStatus
impl Sync for QueueStatus
impl Unpin for QueueStatus
impl UnsafeUnpin for QueueStatus
impl UnwindSafe for QueueStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ValueFor<Option<T>> for T
impl<T> ValueFor<Option<T>> for T
Source§fn into_value_for(self) -> Option<T>
fn into_value_for(self) -> Option<T>
The value as the column’s type.