pub trait Executor<E: Environment> {
type Error;
// Required method
fn exec<Args, Output>(
&self,
input: &ExecutionInput<Args>,
) -> Result<MessageResult<Output>, Self::Error>
where Args: Encode,
Output: Decode;
}
Expand description
Implemented in different environments to perform contract execution.
Required Associated Types§
Required Methods§
Sourcefn exec<Args, Output>(
&self,
input: &ExecutionInput<Args>,
) -> Result<MessageResult<Output>, Self::Error>where
Args: Encode,
Output: Decode,
fn exec<Args, Output>(
&self,
input: &ExecutionInput<Args>,
) -> Result<MessageResult<Output>, Self::Error>where
Args: Encode,
Output: Decode,
Perform the contract execution with the given input data, and return the result.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.