pub struct Pushed<J> { /* private fields */ }Expand description
Implementations§
Source§impl<J> Pushed<J>
impl<J> Pushed<J>
Sourcepub fn connection(&self) -> &str
pub fn connection(&self) -> &str
The connection the job was dispatched to, such as database.
Sourcepub fn delay(&self) -> ExactDuration
pub fn delay(&self) -> ExactDuration
How long the job was delayed from when it was pushed.
The returned duration compares equal to the span or duration you dispatched the job with, as
in job.delay() == 5.minutes().
Sourcepub const fn chain(&self) -> &JobList
pub const fn chain(&self) -> &JobList
The jobs chained after this job, in the order they’ll run.
Sourcepub const fn chain_catch(&self) -> &CallbackList
pub const fn chain_catch(&self) -> &CallbackList
The callbacks that this job’s chain calls if a job in the chain fails for good.
Trait Implementations§
Auto Trait Implementations§
impl<J> !RefUnwindSafe for Pushed<J>
impl<J> !UnwindSafe for Pushed<J>
impl<J> Forget for Pushed<J>
impl<J> Freeze for Pushed<J>where
*const ArcInner<J> is !null: Freeze,
PhantomData<ArcInner<J>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Link>: Freeze,
PhantomData<EncodedCallback>: Freeze,
impl<J> Move for Pushed<J>
impl<J> Send for Pushed<J>
impl<J> Sync for Pushed<J>
impl<J> Unpin for Pushed<J>
impl<J> UnsafeUnpin for Pushed<J>where
*const ArcInner<J> is !null: UnsafeUnpin,
PhantomData<ArcInner<J>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Link>: UnsafeUnpin,
PhantomData<EncodedCallback>: UnsafeUnpin,
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<T, A> DynAccess<T> for A
impl<T, A> DynAccess<T> for A
Source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
impl<T> Formattable for T
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.