Trait ate::service::Service[][src]

pub trait Service where
    Self: Send + Sync
{ fn filter(&self, evt: &EventData) -> bool;
#[must_use] fn notify<'life0, 'async_trait>(
        &'life0 self,
        key: PrimaryKey
    ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError<()>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

fn filter(&self, evt: &EventData) -> bool[src]

#[must_use]
fn notify<'life0, 'async_trait>(
    &'life0 self,
    key: PrimaryKey
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError<()>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...