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 log_level(&self) -> LogLevel;
fn add_logs_listener(&self, sender: Sender<Log>);
fn debug_level(&self) -> DebugLevel;
fn add_debug_listener(&self, sender: Sender<Event>);
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;
}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 log_level(&self) -> LogLevel
fn add_logs_listener(&self, sender: Sender<Log>)
fn debug_level(&self) -> DebugLevel
fn add_debug_listener(&self, sender: Sender<Event>)
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".