pub enum CleanupResult {
Ok,
Failed,
WorkerLost,
NotNeeded,
}Expand description
How a task’s cleanup ended: an attribute beside its state, not a state.
Variants§
Ok
It ran and succeeded.
Failed
It failed after its last retry: the run fails.
WorkerLost
It didn’t run, its worker being lost: counts as failed.
NotNeeded
The attempt’s process never started (decision 216).
Implementations§
Source§impl CleanupResult
impl CleanupResult
Sourcepub const fn fails_the_run(self) -> bool
pub const fn fails_the_run(self) -> bool
Whether it fails the run (see archive/PROJECT.md, Run result).
Trait Implementations§
Source§impl Clone for CleanupResult
impl Clone for CleanupResult
Source§fn clone(&self) -> CleanupResult
fn clone(&self) -> CleanupResult
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 CleanupResult
Source§impl Debug for CleanupResult
impl Debug for CleanupResult
Source§impl<'de> Deserialize<'de> for CleanupResult
impl<'de> Deserialize<'de> for CleanupResult
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 Display for CleanupResult
impl Display for CleanupResult
impl Eq for CleanupResult
Source§impl Hash for CleanupResult
impl Hash for CleanupResult
Source§impl JsonSchema for CleanupResult
impl JsonSchema for CleanupResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CleanupResult
impl PartialEq for CleanupResult
Source§impl Serialize for CleanupResult
impl Serialize for CleanupResult
impl StructuralPartialEq for CleanupResult
Auto Trait Implementations§
impl Freeze for CleanupResult
impl RefUnwindSafe for CleanupResult
impl Send for CleanupResult
impl Sync for CleanupResult
impl Unpin for CleanupResult
impl UnsafeUnpin for CleanupResult
impl UnwindSafe for CleanupResult
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