pub struct JobOptions { /* private fields */ }Expand description
Represents options for the specified job
Implementations§
Source§impl JobOptions
impl JobOptions
Sourcepub fn new(ttl: Option<Duration>) -> Self
pub fn new(ttl: Option<Duration>) -> Self
Create a new JobOptions instance, optionally supplying the ttl for the job
ttl- The Time-to-live specification for this job, which is the maximum amount of time the job can remain in the factory’s (or worker’s) queue before being expired and discarded
Returns a new JobOptions instance.
Sourcepub fn submit_time(&self) -> SystemTime
pub fn submit_time(&self) -> SystemTime
Time the job was submitted to the factory
(i.e. the time cast was called)
Sourcepub fn worker_time(&self) -> SystemTime
pub fn worker_time(&self) -> SystemTime
Time the job was dispatched to a worker
Sourcepub fn factory_time(&self) -> SystemTime
pub fn factory_time(&self) -> SystemTime
Time the job was received by the factory and first either dispatched or enqueued to the factory’s queue
Trait Implementations§
Source§impl Clone for JobOptions
impl Clone for JobOptions
Source§fn clone(&self) -> JobOptions
fn clone(&self) -> JobOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JobOptions
impl Debug for JobOptions
Source§impl Default for JobOptions
impl Default for JobOptions
Source§impl PartialEq for JobOptions
impl PartialEq for JobOptions
impl StructuralPartialEq for JobOptions
Auto Trait Implementations§
impl Freeze for JobOptions
impl !RefUnwindSafe for JobOptions
impl Send for JobOptions
impl Sync for JobOptions
impl Unpin for JobOptions
impl !UnwindSafe for JobOptions
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<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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage