pub struct ObservationTrace {
pub session: Option<String>,
pub observations: Vec<Observation>,
pub dropped: u64,
pub finalized: bool,
}Expand description
The serializable trace a sink produces: the analysis artifact.
Fields§
§session: Option<String>The sink’s declared session, when it has one (a run’s scope, a trial id). Lineage, not semantics.
observations: Vec<Observation>The facts, in sequence.
dropped: u64Facts discarded because sink capacity was reached. Nonzero means the trace is incomplete.
finalized: boolWhether the sink was told the session finished normally.
Implementations§
Source§impl ObservationTrace
impl ObservationTrace
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether every fact the session produced is here.
Trait Implementations§
Source§impl Clone for ObservationTrace
impl Clone for ObservationTrace
Source§impl Debug for ObservationTrace
impl Debug for ObservationTrace
Source§impl<'de> Deserialize<'de> for ObservationTrace
impl<'de> Deserialize<'de> for ObservationTrace
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 ObservationTrace
impl PartialEq for ObservationTrace
Source§impl Serialize for ObservationTrace
impl Serialize for ObservationTrace
impl StructuralPartialEq for ObservationTrace
Auto Trait Implementations§
impl Freeze for ObservationTrace
impl RefUnwindSafe for ObservationTrace
impl Send for ObservationTrace
impl Sync for ObservationTrace
impl Unpin for ObservationTrace
impl UnsafeUnpin for ObservationTrace
impl UnwindSafe for ObservationTrace
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.