pub struct JobSpec { /* private fields */ }Expand description
Provider-neutral description of one durable Runtime job.
Implementations§
Source§impl JobSpec
impl JobSpec
Sourcepub fn new(
job_id: JobId,
capability: CapabilityId,
payload_reference: impl Into<String>,
available_at_ms: u64,
max_attempts: u32,
) -> ProviderResult<Self>
pub fn new( job_id: JobId, capability: CapabilityId, payload_reference: impl Into<String>, available_at_ms: u64, max_attempts: u32, ) -> ProviderResult<Self>
Creates a job containing an opaque external payload reference.
Sourcepub fn capability(&self) -> &CapabilityId
pub fn capability(&self) -> &CapabilityId
Returns the capability required to execute the job.
Sourcepub fn payload_reference(&self) -> &str
pub fn payload_reference(&self) -> &str
Returns the opaque provider-owned payload reference.
Sourcepub fn available_at_ms(&self) -> u64
pub fn available_at_ms(&self) -> u64
Returns the earliest execution timestamp.
Sourcepub fn max_attempts(&self) -> u32
pub fn max_attempts(&self) -> u32
Returns the bounded execution-attempt limit.
Trait Implementations§
impl Eq for JobSpec
impl StructuralPartialEq for JobSpec
Auto Trait Implementations§
impl Freeze for JobSpec
impl RefUnwindSafe for JobSpec
impl Send for JobSpec
impl Sync for JobSpec
impl Unpin for JobSpec
impl UnsafeUnpin for JobSpec
impl UnwindSafe for JobSpec
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