Trait concrete_core::specification::engines::AbstractEngine
source · [−]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
sourcetype EngineError: Error
type EngineError: Error
The error associated to the engine.
sourcetype Parameters
type Parameters
The constructor parameters type.
Required Methods
sourcefn new(parameter: Self::Parameters) -> Result<Self, Self::EngineError>where
Self: Sized,
fn new(parameter: Self::Parameters) -> Result<Self, Self::EngineError>where
Self: Sized,
A constructor for the engine.