File size: 218 Bytes
d90101d
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
use crate::Event;

pub mod posthog;

///
/// Defines the interface for an event collector.
#[async_trait::async_trait]
pub trait Collect: Send + Sync {
    async fn collect(&self, event: Event) -> super::Result<()>;
}