Trait Module

Source
pub trait Module {
    // Required methods
    fn new() -> Self
       where Self: Sized;
    fn process_event<'life0, 'async_trait>(
        &'life0 mut self,
        event: MEvent,
        persist: bool,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn entity_name(&self) -> String;
}

Required Methods§

Source

fn new() -> Self
where Self: Sized,

Source

fn process_event<'life0, 'async_trait>( &'life0 mut self, event: MEvent, persist: bool, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn entity_name(&self) -> String

Implementors§