pub trait EngineValidatorBuilder<Node: FullNodeComponents>: Send {
type Validator: EngineValidator<<Node::Types as NodeTypesWithEngine>::Engine> + Clone + Unpin + 'static;
// Required method
fn build(
self,
ctx: &AddOnsContext<'_, Node>,
) -> impl Future<Output = Result<Self::Validator>> + Send;
}
Expand description
A type that knows how to build the engine validator.
Required Associated Types§
Sourcetype Validator: EngineValidator<<Node::Types as NodeTypesWithEngine>::Engine> + Clone + Unpin + 'static
type Validator: EngineValidator<<Node::Types as NodeTypesWithEngine>::Engine> + Clone + Unpin + 'static
The consensus implementation to build.
Required Methods§
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.