pub struct Recipe<Driver, Os, T>{ /* private fields */ }Expand description
A sequence of injection steps to be executed in order.
Implementations§
Source§impl<Driver, Os, T> Recipe<Driver, Os, T>
impl<Driver, Os, T> Recipe<Driver, Os, T>
Sourcepub fn new_with_bridge(data: T) -> Self
pub fn new_with_bridge(data: T) -> Self
Creates a new recipe with the given data and bridge support.
Sourcepub fn step<F>(self, f: F) -> Selfwhere
F: Fn(&mut RecipeContext<'_, Driver, Os, T>) -> Result<RecipeControlFlow, VmiError> + Send + Sync + 'static,
pub fn step<F>(self, f: F) -> Selfwhere
F: Fn(&mut RecipeContext<'_, Driver, Os, T>) -> Result<RecipeControlFlow, VmiError> + Send + Sync + 'static,
Adds a new step to the recipe.
Auto Trait Implementations§
impl<Driver, Os, T> Freeze for Recipe<Driver, Os, T>where
T: Freeze,
impl<Driver, Os, T> !RefUnwindSafe for Recipe<Driver, Os, T>
impl<Driver, Os, T> Send for Recipe<Driver, Os, T>where
T: Send,
impl<Driver, Os, T> Sync for Recipe<Driver, Os, T>where
T: Sync,
impl<Driver, Os, T> Unpin for Recipe<Driver, Os, T>where
T: Unpin,
impl<Driver, Os, T> !UnwindSafe for Recipe<Driver, Os, 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