#[non_exhaustive]pub enum BatchStatus {
Starting,
Started,
Stopping,
Stopped,
Failed,
Completed,
Abandoned,
Unknown,
}Expand description
The framework lifecycle status of a job or step execution.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Starting
Metadata exists and user work has not started.
Started
User work is running.
Stopping
A cooperative stop is in progress.
Stopped
The attempt stopped cooperatively and may be restarted.
Failed
The attempt failed and may be restartable.
Completed
The attempt completed successfully.
Abandoned
The instance is intentionally terminal and cannot restart.
Unknown
The durable outcome is ambiguous and requires recovery.
Implementations§
Source§impl BatchStatus
impl BatchStatus
Sourcepub const fn is_active(self) -> bool
pub const fn is_active(self) -> bool
Returns whether the attempt is actively running or stopping.
Sourcepub const fn is_finished(self) -> bool
pub const fn is_finished(self) -> bool
Returns whether the attempt has a known finished outcome.
Sourcepub const fn is_terminal(self) -> bool
pub const fn is_terminal(self) -> bool
Returns whether the logical instance is terminal and not restartable.
Trait Implementations§
Source§impl Clone for BatchStatus
impl Clone for BatchStatus
Source§fn clone(&self) -> BatchStatus
fn clone(&self) -> BatchStatus
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 BatchStatus
Source§impl Debug for BatchStatus
impl Debug for BatchStatus
Source§impl Display for BatchStatus
impl Display for BatchStatus
impl Eq for BatchStatus
Source§impl Hash for BatchStatus
impl Hash for BatchStatus
Source§impl Ord for BatchStatus
impl Ord for BatchStatus
Source§fn cmp(&self, other: &BatchStatus) -> Ordering
fn cmp(&self, other: &BatchStatus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BatchStatus
impl PartialEq for BatchStatus
Source§impl PartialOrd for BatchStatus
impl PartialOrd for BatchStatus
impl StructuralPartialEq for BatchStatus
Auto Trait Implementations§
impl Freeze for BatchStatus
impl RefUnwindSafe for BatchStatus
impl Send for BatchStatus
impl Sync for BatchStatus
impl Unpin for BatchStatus
impl UnsafeUnpin for BatchStatus
impl UnwindSafe for BatchStatus
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