pub struct StoredAttempt {
pub id: String,
pub instance_id: String,
pub run_id: String,
pub task_id: TaskId,
pub try_number: u32,
pub worker_id: String,
pub status: Option<AttemptStatus>,
pub started: bool,
pub map_index: i32,
pub result_kept: bool,
pub cleanup_moves: u32,
pub moving: bool,
}Expand description
A stored attempt.
Fields§
§id: StringIts ID.
instance_id: StringIts task instance.
run_id: StringThe run.
task_id: TaskIdThe task.
try_number: u32Its try number.
worker_id: StringThe worker it was assigned to.
status: Option<AttemptStatus>How it ended; None while it runs.
started: boolWhether the worker reported Started.
map_index: i32Its task instance’s place among a mapped task’s instances; -1 for an unmapped task.
result_kept: boolWhether the task’s result is kept while its cleanup runs.
cleanup_moves: u32How many times its cleanup moved to another worker.
moving: boolWhether its moved cleanup was assigned, and hasn’t been started yet.
Trait Implementations§
Source§impl Clone for StoredAttempt
impl Clone for StoredAttempt
Source§fn clone(&self) -> StoredAttempt
fn clone(&self) -> StoredAttempt
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 moreSource§impl Debug for StoredAttempt
impl Debug for StoredAttempt
impl Eq for StoredAttempt
Source§impl PartialEq for StoredAttempt
impl PartialEq for StoredAttempt
impl StructuralPartialEq for StoredAttempt
Auto Trait Implementations§
impl Freeze for StoredAttempt
impl RefUnwindSafe for StoredAttempt
impl Send for StoredAttempt
impl Sync for StoredAttempt
impl Unpin for StoredAttempt
impl UnsafeUnpin for StoredAttempt
impl UnwindSafe for StoredAttempt
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more