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<E>) -> Self
pub fn new(executor: &'l E, step: &'l Step<E>) -> 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<E::Output, FormatAndExecuteError<E::Error>>
pub async fn format_and_execute( &self, parameters: &Parameters ) -> Result<E::Output, FormatAndExecuteError<E::Error>>
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, <E as Executor>::PerInvocationOptions: 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, <E as Executor>::PerInvocationOptions: 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