pub struct AttemptEnd {
pub status: AttemptStatus,
pub exit_code: Option<i32>,
pub signal: Option<i32>,
pub peak_memory_bytes: Option<u64>,
pub usage: Option<ProcessUsage>,
pub core_dumped: bool,
pub duration_ms: Option<u64>,
pub error_kind: Option<String>,
pub error_summary: Option<String>,
pub code_hash: Option<String>,
pub cleanup: Option<CleanupEnd>,
}Expand description
How an attempt ended.
Fields§
§status: AttemptStatusIts status.
exit_code: Option<i32>The process’s exit code, if it exited.
signal: Option<i32>The signal that killed it, if one did.
peak_memory_bytes: Option<u64>The peak memory of its process tree.
usage: Option<ProcessUsage>What its process used (its parent’s view at its exit), if the worker read it.
core_dumped: boolWhether its process dumped core.
duration_ms: Option<u64>How long it ran, measured by the worker with a monotonic clock (the start and end timestamps come from the master’s wall clock, which can step).
error_kind: Option<String>The error kind schedr recognised.
error_summary: Option<String>The structured error summary, as JSON text.
code_hash: Option<String>The content hash the code ran with.
cleanup: Option<CleanupEnd>How its cleanup ended; None for a task without one.
Implementations§
Source§impl AttemptEnd
impl AttemptEnd
Sourcepub const fn by_master(status: AttemptStatus) -> Self
pub const fn by_master(status: AttemptStatus) -> Self
An end decided by the master (lost, assignment_expired): only a status.
Trait Implementations§
Source§impl Clone for AttemptEnd
impl Clone for AttemptEnd
Source§fn clone(&self) -> AttemptEnd
fn clone(&self) -> AttemptEnd
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 AttemptEnd
impl Debug for AttemptEnd
impl Eq for AttemptEnd
Source§impl PartialEq for AttemptEnd
impl PartialEq for AttemptEnd
impl StructuralPartialEq for AttemptEnd
Auto Trait Implementations§
impl Freeze for AttemptEnd
impl RefUnwindSafe for AttemptEnd
impl Send for AttemptEnd
impl Sync for AttemptEnd
impl Unpin for AttemptEnd
impl UnsafeUnpin for AttemptEnd
impl UnwindSafe for AttemptEnd
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