Trait LogIngestor

Source
pub trait LogIngestor: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn start(&self);
    fn ingest<'life0, 'async_trait>(
        &'life0 mut self,
        log: Log,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn flush<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn start(&self)

Source

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

Source

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

Implementors§