pub struct Finished {Show 16 fields
pub attempt_id: String,
pub status: i32,
pub exit_code: Option<i32>,
pub signal: Option<i32>,
pub output_json: Vec<u8>,
pub outcome: String,
pub duration_ms: Option<u64>,
pub peak_memory_bytes: u64,
pub error_kind: String,
pub error_summary_json: Vec<u8>,
pub code_hash: String,
pub usage: Option<ProcessUsage>,
pub core_dumped: bool,
pub cleanup: Option<CleanupResult>,
pub wait_step: bool,
pub struck: bool,
}Fields§
§attempt_id: String§status: i32§exit_code: Option<i32>§signal: Option<i32>§output_json: Vec<u8>On success: the output as tagged JSON (schedr-model), and its outcome name.
outcome: String§duration_ms: Option<u64>How long the process ran (the agent’s monotonic clock); absent if it never started.
peak_memory_bytes: u64§error_kind: StringFor failures schedr recognises, e.g. “secret_not_found”; empty otherwise.
error_summary_json: Vec<u8>A structured error summary as JSON; empty if none.
code_hash: StringThe content hash of the code the attempt ran with.
usage: Option<ProcessUsage>What the process used, with the children it reaped (its parent’s view at its exit); absent if it couldn’t be read.
core_dumped: boolWhether it dumped core (ended by a signal).
cleanup: Option<CleanupResult>How the task’s cleanup ended; absent for a task without one.
wait_step: boolA wait step (decision 338): whether it got its host killed.
struck: boolImplementations§
Source§impl Finished
impl Finished
Sourcepub fn status(&self) -> AttemptStatus
pub fn status(&self) -> AttemptStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: AttemptStatus)
pub fn set_status(&mut self, value: AttemptStatus)
Sets status to the provided enum value.
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
Returns the value of exit_code, or the default value if exit_code is unset.
Sourcepub fn signal(&self) -> i32
pub fn signal(&self) -> i32
Returns the value of signal, or the default value if signal is unset.
Sourcepub fn duration_ms(&self) -> u64
pub fn duration_ms(&self) -> u64
Returns the value of duration_ms, or the default value if duration_ms is unset.
Trait Implementations§
impl Eq for Finished
Source§impl Message for Finished
impl Message for Finished
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for Finished
Auto Trait Implementations§
impl Freeze for Finished
impl RefUnwindSafe for Finished
impl Send for Finished
impl Sync for Finished
impl Unpin for Finished
impl UnsafeUnpin for Finished
impl UnwindSafe for Finished
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
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
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> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].