Engine

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;
}

Required Methods§

Source

fn collection(&self) -> Arc<Collection>

Source

fn genesis( &self, entry: &Identifier, params: HashMap<String, Value>, ) -> LogicResult<()>

Source

fn errors(&self) -> LogicErrors

Source

fn set_auto_end(&self, auto_end: bool)

Source

fn auto_end(&self) -> bool

Source

fn live<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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,

Source

fn end<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§