pub trait EngineValidatorAddOn<Node: FullNodeComponents>: Send {
type Validator: EngineValidator<<Node::Types as NodeTypes>::Payload, Block = BlockTy<Node::Types>> + Clone;
// Required method
fn engine_validator(
&self,
ctx: &AddOnsContext<'_, Node>,
) -> impl Future<Output = Result<Self::Validator>>;
}
Expand description
Helper trait that provides the validator for the engine API
Required Associated Types§
Required Methods§
Sourcefn engine_validator(
&self,
ctx: &AddOnsContext<'_, Node>,
) -> impl Future<Output = Result<Self::Validator>>
fn engine_validator( &self, ctx: &AddOnsContext<'_, Node>, ) -> impl Future<Output = Result<Self::Validator>>
Creates the engine validator for an engine API based node.
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.