pub trait EngineValidatorAddOn<Node: FullNodeComponents>: Send {
type Validator: EngineValidator<<Node::Types as NodeTypesWithEngine>::Engine, 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§
Sourcetype Validator: EngineValidator<<Node::Types as NodeTypesWithEngine>::Engine, Block = BlockTy<Node::Types>> + Clone
type Validator: EngineValidator<<Node::Types as NodeTypesWithEngine>::Engine, Block = BlockTy<Node::Types>> + Clone
The Validator type to use for the engine API.
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.