pub struct Frame<'l, E, S>where
E: Executor<Step = S>,
S: Step,{ /* 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, S> Frame<'l, E, S>where
E: Executor<Step = S>,
S: Step,
impl<'l, E, S> Frame<'l, E, S>where E: Executor<Step = S>, S: Step,
sourcepub fn new(executor: &'l E, step: &'l S) -> Self
pub fn new(executor: &'l E, step: &'l S) -> 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, E::Error>
pub async fn format_and_execute( &self, parameters: &Parameters ) -> Result<E::Output, 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, S> RefUnwindSafe for Frame<'l, E, S>where E: RefUnwindSafe, S: RefUnwindSafe,
impl<'l, E, S> Send for Frame<'l, E, S>where E: Sync, S: Sync,
impl<'l, E, S> Sync for Frame<'l, E, S>where E: Sync, S: Sync,
impl<'l, E, S> Unpin for Frame<'l, E, S>
impl<'l, E, S> UnwindSafe for Frame<'l, E, S>where E: RefUnwindSafe, S: RefUnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request