pub struct InstanceRecord {
pub task_id: TaskId,
pub map_index: i32,
pub reason: Option<String>,
pub state: TaskInstanceState,
pub outcome: Option<String>,
pub try_number: u32,
pub queued_reason: Option<String>,
pub cleanup_result: Option<CleanupResult>,
pub updated_at: Timestamp,
}Expand description
A task instance, as shown.
Fields§
§task_id: TaskIdThe task.
map_index: i32Its place among a mapped task’s instances; -1 for an unmapped task, and for a mapped task as a whole.
reason: Option<String>Why it ended without an attempt (a mapped task that couldn’t expand).
state: TaskInstanceStateIts state.
outcome: Option<String>Its outcome, on success.
try_number: u32Attempts made.
queued_reason: Option<String>Why it is waiting or unschedulable.
cleanup_result: Option<CleanupResult>How its cleanups ended: the last, unless one failed; None for a task without one, or
before its first cleanup ends.
updated_at: TimestampWhen it last changed.
Trait Implementations§
Source§impl Clone for InstanceRecord
impl Clone for InstanceRecord
Source§fn clone(&self) -> InstanceRecord
fn clone(&self) -> InstanceRecord
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 InstanceRecord
impl Debug for InstanceRecord
impl Eq for InstanceRecord
Source§impl PartialEq for InstanceRecord
impl PartialEq for InstanceRecord
impl StructuralPartialEq for InstanceRecord
Auto Trait Implementations§
impl Freeze for InstanceRecord
impl RefUnwindSafe for InstanceRecord
impl Send for InstanceRecord
impl Sync for InstanceRecord
impl Unpin for InstanceRecord
impl UnsafeUnpin for InstanceRecord
impl UnwindSafe for InstanceRecord
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