pub struct MetadataContext<S: EngineSpec> { /* private fields */ }Expand description
Context for a step’s metadata-generation function.
This is passed into the function registered to generate a step’s metadata.
§Notes
MetadataContext deliberately does not implement Clone, to make
it more likely that it is dropped at the same time the future
completes.
Implementations§
Source§impl<S: EngineSpec> MetadataContext<S>
impl<S: EngineSpec> MetadataContext<S>
Sourcepub fn token(&self) -> &StepHandleToken<S>
pub fn token(&self) -> &StepHandleToken<S>
Retrieves a token used to fetch the value out of a
StepHandle.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for MetadataContext<S>
impl<S> RefUnwindSafe for MetadataContext<S>where
S: RefUnwindSafe,
impl<S> Send for MetadataContext<S>
impl<S> Sync for MetadataContext<S>where
S: Sync,
impl<S> Unpin for MetadataContext<S>where
S: Unpin,
impl<S> UnsafeUnpin for MetadataContext<S>
impl<S> UnwindSafe for MetadataContext<S>where
S: 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