Skip to main content

PrepareCall

Trait PrepareCall 

Source
pub trait PrepareCall<Opt>: Send + Sync {
    // Required method
    fn prepare_call(
        &self,
        input: PrepareCallInput<Opt>,
    ) -> BoxFuture<'_, Result<PreparedCall, Error>>;
}
Expand description

Rewrites the settings of a call from its options (templated instructions, per-tenant tools, …).

Required Methods§

Source

fn prepare_call( &self, input: PrepareCallInput<Opt>, ) -> BoxFuture<'_, Result<PreparedCall, Error>>

Produces the settings to use.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Opt, F, Fut> PrepareCall<Opt> for F
where F: Fn(PrepareCallInput<Opt>) -> Fut + Send + Sync, Fut: Future<Output = Result<PreparedCall, Error>> + Send + 'static,