Trait concrete_core::specification::engines::AbstractEngine
source · [−]pub trait AbstractEngine: AbstractEngineSeal {
type EngineError: Error;
fn new() -> 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.
Associated Types
type EngineError: Error
type EngineError: Error
The error associated to the engine.
Required methods
fn new() -> Result<Self, Self::EngineError> where
Self: Sized,
fn new() -> Result<Self, Self::EngineError> where
Self: Sized,
A constructor for the engine.