pub trait TxnInstruction {
// Required method
fn execute<Y, L>(
self,
worktop: &mut Worktop,
objects: &mut IntentProcessorObjects<'_>,
api: &mut Y,
) -> Result<(InstructionOutput, Option<MultiThreadResult>), RuntimeError>
where Y: SystemApi<RuntimeError> + KernelNodeApi + KernelSubstateApi<L>,
L: Default;
}Required Methods§
fn execute<Y, L>( self, worktop: &mut Worktop, objects: &mut IntentProcessorObjects<'_>, api: &mut Y, ) -> Result<(InstructionOutput, Option<MultiThreadResult>), RuntimeError>
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.