pub struct RunEvidence {Show 13 fields
pub runtime: String,
pub instance_id: String,
pub args: Vec<String>,
pub exit_code: Option<i32>,
pub signal: Option<i32>,
pub killed_for_timeout: bool,
pub elapsed_ms: u64,
pub stdout: String,
pub stderr: String,
pub stdout_bytes: u64,
pub stderr_bytes: u64,
pub truncated: bool,
pub stopped_for_console: Vec<String>,
}Expand description
What one run (or one stopped instance) produced.
Fields§
§runtime: StringAdapter id.
instance_id: StringInstance id.
args: Vec<String>Arguments passed (binary path omitted).
exit_code: Option<i32>Exit code, when the process exited normally.
signal: Option<i32>Terminating signal, when killed.
killed_for_timeout: boolKilled because it exceeded [console].max_runtime_secs.
elapsed_ms: u64Wall time.
stdout: StringCaptured stdout (capped).
stderr: StringCaptured stderr (capped).
stdout_bytes: u64Total stdout bytes produced.
stderr_bytes: u64Total stderr bytes produced.
truncated: boolWhether either stream exceeded the output limit.
stopped_for_console: Vec<String>Instances stopped to free the sensor feed before a console run.
Implementations§
Source§impl RunEvidence
impl RunEvidence
Sourcepub fn with_output(self, out: &Capture, err: &Capture) -> Self
pub fn with_output(self, out: &Capture, err: &Capture) -> Self
Fill output fields from captures.
Sourcepub fn json_lines(&self) -> Vec<Value>
pub fn json_lines(&self) -> Vec<Value>
Stdout lines that parse as JSON objects (a cog’s report lines).
Trait Implementations§
Source§impl Clone for RunEvidence
impl Clone for RunEvidence
Source§impl Debug for RunEvidence
impl Debug for RunEvidence
Source§impl Default for RunEvidence
impl Default for RunEvidence
Source§impl<'de> Deserialize<'de> for RunEvidence
impl<'de> Deserialize<'de> for RunEvidence
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 PartialEq for RunEvidence
impl PartialEq for RunEvidence
Source§impl Serialize for RunEvidence
impl Serialize for RunEvidence
impl StructuralPartialEq for RunEvidence
Auto Trait Implementations§
impl Freeze for RunEvidence
impl RefUnwindSafe for RunEvidence
impl Send for RunEvidence
impl Sync for RunEvidence
impl Unpin for RunEvidence
impl UnsafeUnpin for RunEvidence
impl UnwindSafe for RunEvidence
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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