pub trait FunctionBodyObject<S>: Debug + Display {
// Required method
fn execute<'a>(
&'a self,
env: &'a mut Env<S>,
) -> Pin<Box<dyn Future<Output = Result> + 'a>>;
}Expand description
Dyn-compatible adapter for the FunctionBody trait
This is a dyn-compatible version of the FunctionBody trait.
This trait is automatically implemented for all types that implement
FunctionBody.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".