pub enum JobStatus {
Pending,
Ready,
Assigned,
Running,
Succeeded,
Failed,
}
Expand description
The status of a job.
Variants§
Pending
The job is not yet scheduled for execution.
Ready
The job is ready to be executed.
Assigned
The job is assigned to an executor but has not started yet.
Running
The job is currently being executed.
Succeeded
The job has completed successfully.
Failed
The job has failed.
Implementations§
Source§impl JobStatus
impl JobStatus
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if the status is terminal.
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Returns true
if the job status is Pending
.
Sourcepub fn is_assigned(&self) -> bool
pub fn is_assigned(&self) -> bool
Returns true
if the job status is Assigned
.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Returns true
if the job status is Running
.
Sourcepub fn is_succeeded(&self) -> bool
pub fn is_succeeded(&self) -> bool
Returns true
if the job status is Succeeded
.
Trait Implementations§
Source§impl From<JobExecutionStatus> for JobStatus
impl From<JobExecutionStatus> for JobStatus
Source§fn from(status: JobExecutionStatus) -> Self
fn from(status: JobExecutionStatus) -> Self
Converts to this type from the input type.
Source§impl From<JobStatus> for JobExecutionStatus
impl From<JobStatus> for JobExecutionStatus
impl Copy for JobStatus
impl Eq for JobStatus
impl StructuralPartialEq for JobStatus
Auto Trait Implementations§
impl Freeze for JobStatus
impl RefUnwindSafe for JobStatus
impl Send for JobStatus
impl Sync for JobStatus
impl Unpin for JobStatus
impl UnwindSafe for JobStatus
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§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<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<W> IntoExecutionHandler for W
impl<W> IntoExecutionHandler for W
Source§fn handler<J>(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>where
Self: ExecutionHandler<J>,
J: JobType,
fn handler<J>(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>where
Self: ExecutionHandler<J>,
J: JobType,
Convert
self
into a [RawHandler
] that can be registered
in workers.Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request