pub struct Frame<'l, E>where
E: Executor,{ /* private fields */ }Expand description
The Frame struct represents a combination of a Step and an Executor.
It is designed to provide a simple interface for working with different chain types and handling common behavior for formatting and executing steps.
Implementations§
source§impl<'l, E> Frame<'l, E>where
E: Executor,
impl<'l, E> Frame<'l, E>where E: Executor,
sourcepub fn new(executor: &'l E, step: &'l Step) -> Self
pub fn new(executor: &'l E, step: &'l Step) -> Self
Constructs a new Frame with the given Executor and Step.
The new function takes two references to an Executor and a Step, respectively, and returns
a new Frame instance.
sourcepub async fn format_and_execute(
&self,
parameters: &Parameters
) -> Result<Output, FormatAndExecuteError>
pub async fn format_and_execute( &self, parameters: &Parameters ) -> Result<Output, FormatAndExecuteError>
Formats the step with the provided parameters and executes it using the associated executor.
This function takes a reference to a Parameters struct, formats the step with the provided parameters,
and executes it using the associated executor. The result of the execution is returned as E::Output.
Auto Trait Implementations§
impl<'l, E> RefUnwindSafe for Frame<'l, E>where E: RefUnwindSafe,
impl<'l, E> Send for Frame<'l, E>where E: Sync,
impl<'l, E> Sync for Frame<'l, E>where E: Sync,
impl<'l, E> Unpin for Frame<'l, E>
impl<'l, E> UnwindSafe for Frame<'l, E>where E: RefUnwindSafe,
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