pub enum JobStoppedReason {
Finished,
StoppedByUser,
ExitCriterionMatched {
command: PositionWithDescription,
condition: PositionWithDescription,
},
Failed {
error: ErrorCode,
},
}
Expand description
The reasons for a job to be stopped.
Variants§
Finished
The job has reached the end.
StoppedByUser
The job was stopped due to a user request over the XIO protocol.
ExitCriterionMatched
An exit criterion matched and therefore the execution was stopped.
Fields
§
command: PositionWithDescription
The command that was executed while the condition matched.
§
condition: PositionWithDescription
The condition which matched.
Failed
The job execution failed due to some reason.
Trait Implementations§
Source§impl Clone for JobStoppedReason
impl Clone for JobStoppedReason
Source§fn clone(&self) -> JobStoppedReason
fn clone(&self) -> JobStoppedReason
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 JobStoppedReason
impl Debug for JobStoppedReason
Source§impl<'de> Deserialize<'de> for JobStoppedReason
impl<'de> Deserialize<'de> for JobStoppedReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for JobStoppedReason
impl PartialEq for JobStoppedReason
Source§impl Serialize for JobStoppedReason
impl Serialize for JobStoppedReason
impl Eq for JobStoppedReason
impl StructuralPartialEq for JobStoppedReason
Auto Trait Implementations§
impl Freeze for JobStoppedReason
impl RefUnwindSafe for JobStoppedReason
impl Send for JobStoppedReason
impl Sync for JobStoppedReason
impl Unpin for JobStoppedReason
impl UnwindSafe for JobStoppedReason
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.