Trait Engine
Source pub trait Engine: Send + Sync {
// Required methods
fn collection(&self) -> Arc<Collection>;
fn genesis(
&self,
entry: &Identifier,
params: HashMap<String, Value>,
) -> LogicResult<()>;
fn errors(&self) -> LogicErrors;
fn set_auto_end(&self, auto_end: bool);
fn auto_end(&self) -> bool;
fn live<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn instanciate<'life0, 'async_trait>(
&'life0 self,
callback: Option<DirectCreationCallback>,
) -> Pin<Box<dyn Future<Output = LogicResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn end<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}