pub enum Event<S: EngineSpec> {
Step(StepEvent<S>),
Progress(ProgressEvent<S>),
}Variants§
Step(StepEvent<S>)
Progress(ProgressEvent<S>)
Implementations§
Source§impl<S: EngineSpec> Event<S>
impl<S: EngineSpec> Event<S>
Sourcepub fn from_generic(
value: Event<GenericSpec>,
) -> Result<Self, ConvertGenericError>
pub fn from_generic( value: Event<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) -> Event<GenericSpec>
pub fn into_generic(self) -> Event<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 Event<S>
impl<S: EngineSpec> Clone for Event<S>
Source§impl<S: EngineSpec> Debug for Event<S>
impl<S: EngineSpec> Debug for Event<S>
Source§impl<S: EngineSpec> PartialEq for Event<S>
impl<S: EngineSpec> PartialEq for Event<S>
impl<S: EngineSpec> Eq for Event<S>
Auto Trait Implementations§
impl<S> Freeze for Event<S>where
<S as EngineSpec>::ProgressMetadata: Freeze,
<S as EngineSpec>::StepId: Freeze,
<S as EngineSpec>::Component: Freeze,
<S as EngineSpec>::StepMetadata: Freeze,
<S as EngineSpec>::CompletionMetadata: Freeze,
<S as EngineSpec>::SkippedMetadata: Freeze,
impl<S> RefUnwindSafe for Event<S>where
<S as EngineSpec>::ProgressMetadata: RefUnwindSafe,
<S as EngineSpec>::StepId: RefUnwindSafe,
<S as EngineSpec>::Component: RefUnwindSafe,
<S as EngineSpec>::StepMetadata: RefUnwindSafe,
<S as EngineSpec>::CompletionMetadata: RefUnwindSafe,
<S as EngineSpec>::SkippedMetadata: RefUnwindSafe,
impl<S> Send for Event<S>
impl<S> Sync for Event<S>
impl<S> Unpin for Event<S>where
<S as EngineSpec>::ProgressMetadata: Unpin,
<S as EngineSpec>::StepId: Unpin,
<S as EngineSpec>::Component: Unpin,
<S as EngineSpec>::StepMetadata: Unpin,
<S as EngineSpec>::CompletionMetadata: Unpin,
<S as EngineSpec>::SkippedMetadata: Unpin,
impl<S> UnsafeUnpin for Event<S>where
<S as EngineSpec>::ProgressMetadata: UnsafeUnpin,
<S as EngineSpec>::StepId: UnsafeUnpin,
<S as EngineSpec>::Component: UnsafeUnpin,
<S as EngineSpec>::StepMetadata: UnsafeUnpin,
<S as EngineSpec>::CompletionMetadata: UnsafeUnpin,
<S as EngineSpec>::SkippedMetadata: UnsafeUnpin,
impl<S> UnwindSafe for Event<S>where
<S as EngineSpec>::ProgressMetadata: UnwindSafe,
<S as EngineSpec>::StepId: UnwindSafe,
<S as EngineSpec>::Component: UnwindSafe,
<S as EngineSpec>::StepMetadata: UnwindSafe,
<S as EngineSpec>::CompletionMetadata: UnwindSafe,
<S as EngineSpec>::SkippedMetadata: 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.