pub trait AbstractEngine: AbstractEngineSeal {
    type EngineError: Error;
    type Parameters;

    fn new(parameter: Self::Parameters) -> Result<Self, Self::EngineError>
    where
        Self: Sized
; }
Expand description

A top-level abstraction for engines of the concrete scheme.

An AbstractEngine is nothing more than a type with an associated error type EngineError and a default constructor.

The associated error type is expected to encode all the failure cases which can occur while using an engine.

Required Associated Types

The error associated to the engine.

The constructor parameters type.

Required Methods

A constructor for the engine.

Implementors