pub struct NewStep<'engine, 'a, S: EngineSpec, T> { /* private fields */ }Expand description
A new step that hasn’t been registered by an execution engine yet.
Created by UpdateEngine::new_step or
ComponentRegistrar::new_step.
Implementations§
Source§impl<'a, S: EngineSpec, T> NewStep<'_, 'a, S, T>
impl<'a, S: EngineSpec, T> NewStep<'_, 'a, S, T>
Sourcepub fn with_metadata_fn<F, Fut>(self, f: F) -> Selfwhere
F: FnOnce(MetadataContext<S>) -> Fut + Send + 'a,
Fut: Future<Output = S::StepMetadata> + Send + 'a,
pub fn with_metadata_fn<F, Fut>(self, f: F) -> Selfwhere
F: FnOnce(MetadataContext<S>) -> Fut + Send + 'a,
Fut: Future<Output = S::StepMetadata> + Send + 'a,
Adds a metadata-generating function to the step.
This function is expected to produce
S::StepMetadata. The metadata
function must be infallible, and will often be synchronous
code.
Sourcepub fn register(self) -> StepHandle<T, S>
pub fn register(self) -> StepHandle<T, S>
Registers the step with the engine.
Trait Implementations§
Auto Trait Implementations§
impl<'engine, 'a, S, T> Freeze for NewStep<'engine, 'a, S, T>
impl<'engine, 'a, S, T> !RefUnwindSafe for NewStep<'engine, 'a, S, T>
impl<'engine, 'a, S, T> Send for NewStep<'engine, 'a, S, T>where
T: Send,
impl<'engine, 'a, S, T> !Sync for NewStep<'engine, 'a, S, T>
impl<'engine, 'a, S, T> Unpin for NewStep<'engine, 'a, S, T>
impl<'engine, 'a, S, T> UnsafeUnpin for NewStep<'engine, 'a, S, T>
impl<'engine, 'a, S, T> !UnwindSafe for NewStep<'engine, 'a, S, T>
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