pub struct ProgressEvent<S: EngineSpec> {
pub spec: String,
pub execution_id: ExecutionUuid,
pub total_elapsed: Duration,
pub kind: ProgressEventKind<S>,
}Fields§
§spec: StringThe specification that this event belongs to.
This is typically the name of the type S for which EngineSpec is
implemented.
This can be used with Self::from_generic to deserialize generic
metadata.
execution_id: ExecutionUuidThe execution ID.
total_elapsed: DurationTotal time elapsed since the start of execution.
kind: ProgressEventKind<S>The kind of event this is.
Implementations§
Source§impl<S: EngineSpec> ProgressEvent<S>
impl<S: EngineSpec> ProgressEvent<S>
Sourcepub fn from_generic(
value: ProgressEvent<GenericSpec>,
) -> Result<Self, ConvertGenericError>
pub fn from_generic( value: ProgressEvent<GenericSpec>, ) -> Result<Self, ConvertGenericError>
Converts a generic version into self.
This version can be used to convert a generic type into a more concrete form.
Sourcepub fn into_generic(self) -> ProgressEvent<GenericSpec>
pub fn into_generic(self) -> ProgressEvent<GenericSpec>
Converts self into its generic version.
This version can be used to share data across different kinds of engines.
If any of the data in self fails to serialize to a
serde_json::Value, it will be replaced with
serde_json::Value::Null. Since serde_json::Value represents
an arbitrary JSON value, such data would have failed to serialize
anyway.
Trait Implementations§
Source§impl<S: EngineSpec> Clone for ProgressEvent<S>
impl<S: EngineSpec> Clone for ProgressEvent<S>
Source§impl<S: EngineSpec> Debug for ProgressEvent<S>
impl<S: EngineSpec> Debug for ProgressEvent<S>
Source§impl<'de, S: EngineSpec> Deserialize<'de> for ProgressEvent<S>
impl<'de, S: EngineSpec> Deserialize<'de> for ProgressEvent<S>
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<S: JsonSchemaEngineSpec> JsonSchema for ProgressEvent<S>
Available on crate feature schemars08 only.
impl<S: JsonSchemaEngineSpec> JsonSchema for ProgressEvent<S>
Available on crate feature
schemars08 only.Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl<S: EngineSpec> PartialEq for ProgressEvent<S>
impl<S: EngineSpec> PartialEq for ProgressEvent<S>
Source§impl<S: EngineSpec> Serialize for ProgressEvent<S>
impl<S: EngineSpec> Serialize for ProgressEvent<S>
impl<S: EngineSpec> Eq for ProgressEvent<S>
Auto Trait Implementations§
impl<S> Freeze for ProgressEvent<S>where
<S as EngineSpec>::ProgressMetadata: Freeze,
<S as EngineSpec>::StepId: Freeze,
<S as EngineSpec>::Component: Freeze,
<S as EngineSpec>::StepMetadata: Freeze,
impl<S> RefUnwindSafe for ProgressEvent<S>where
<S as EngineSpec>::ProgressMetadata: RefUnwindSafe,
<S as EngineSpec>::StepId: RefUnwindSafe,
<S as EngineSpec>::Component: RefUnwindSafe,
<S as EngineSpec>::StepMetadata: RefUnwindSafe,
impl<S> Send for ProgressEvent<S>
impl<S> Sync for ProgressEvent<S>
impl<S> Unpin for ProgressEvent<S>where
<S as EngineSpec>::ProgressMetadata: Unpin,
<S as EngineSpec>::StepId: Unpin,
<S as EngineSpec>::Component: Unpin,
<S as EngineSpec>::StepMetadata: Unpin,
impl<S> UnsafeUnpin for ProgressEvent<S>where
<S as EngineSpec>::ProgressMetadata: UnsafeUnpin,
<S as EngineSpec>::StepId: UnsafeUnpin,
<S as EngineSpec>::Component: UnsafeUnpin,
<S as EngineSpec>::StepMetadata: UnsafeUnpin,
impl<S> UnwindSafe for ProgressEvent<S>where
<S as EngineSpec>::ProgressMetadata: UnwindSafe,
<S as EngineSpec>::StepId: UnwindSafe,
<S as EngineSpec>::Component: UnwindSafe,
<S as EngineSpec>::StepMetadata: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.