pub struct QueueSizes {
pub pending: u64,
pub delayed: u64,
pub reserved: u64,
pub oldest_pending: Option<Timestamp>,
pub approximate: bool,
}Expand description
How many jobs a queue holds in each state, as
QueueManager::sizes reports them.
A driver builds QueueSizes from its defaults, so that fields added later don’t break the
driver:
use laravel::queue::QueueSizes;
let sizes = QueueSizes {
pending: 12,
reserved: 2,
..QueueSizes::default()
};
assert_eq!(sizes.total(), 14);Fields§
§pending: u64The jobs a worker can take now, including jobs whose reservation lapsed.
delayed: u64The jobs waiting out a delay from their dispatch or a release.
reserved: u64The jobs a worker has reserved and is running.
oldest_pending: Option<Timestamp>When the next pending job was dispatched, or None if the backend doesn’t know.
approximate: boolWhether the backend only estimates the counts, as SQS does.
Implementations§
Trait Implementations§
Source§impl Clone for QueueSizes
impl Clone for QueueSizes
Source§fn clone(&self) -> QueueSizes
fn clone(&self) -> QueueSizes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueueSizes
Source§impl Debug for QueueSizes
impl Debug for QueueSizes
Source§impl Default for QueueSizes
impl Default for QueueSizes
Source§fn default() -> QueueSizes
fn default() -> QueueSizes
Returns the “default value” for a type. Read more
impl Eq for QueueSizes
Source§impl PartialEq for QueueSizes
impl PartialEq for QueueSizes
impl StructuralPartialEq for QueueSizes
Auto Trait Implementations§
impl Forget for QueueSizes
impl Freeze for QueueSizes
impl Move for QueueSizes
impl RefUnwindSafe for QueueSizes
impl Send for QueueSizes
impl Sync for QueueSizes
impl Unpin for QueueSizes
impl UnsafeUnpin for QueueSizes
impl UnwindSafe for QueueSizes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 moreCreates a shared type from an unshared type.