pub trait EngineValidatorAddOn<Node>: Sendwhere
Node: FullNodeComponents,{
type Validator: EngineValidator<<<Node as FullNodeTypes>::Types as NodeTypesWithEngine>::Engine>;
// Required method
fn engine_validator(
&self,
ctx: &AddOnsContext<'_, Node>,
) -> impl Future<Output = Result<Self::Validator, Report>>;
}
Expand description
Helper trait that provides the validator for the engine API
Required Associated Types§
Sourcetype Validator: EngineValidator<<<Node as FullNodeTypes>::Types as NodeTypesWithEngine>::Engine>
type Validator: EngineValidator<<<Node as FullNodeTypes>::Types as NodeTypesWithEngine>::Engine>
The Validator type to use for the engine API.
Required Methods§
Sourcefn engine_validator(
&self,
ctx: &AddOnsContext<'_, Node>,
) -> impl Future<Output = Result<Self::Validator, Report>>
fn engine_validator( &self, ctx: &AddOnsContext<'_, Node>, ) -> impl Future<Output = Result<Self::Validator, Report>>
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.