pub trait Event:
Send
+ Sync
+ 'static {
// Required methods
fn event_id(&self) -> &str;
fn metadata(&self) -> &EventMetadata;
fn event_type(&self) -> &str;
}Expand description
모든 이벤트가 구현해야 하는 기본 trait
각 모듈은 자체 이벤트 타입을 정의하고 이 trait을 구현합니다.
Send + Sync + 'static 바운드로 tokio::mpsc 채널을 통한
안전한 전송을 보장합니다.
Required Methods§
Sourcefn metadata(&self) -> &EventMetadata
fn metadata(&self) -> &EventMetadata
이벤트 메타데이터 (timestamp, source_module, trace_id)
Sourcefn event_type(&self) -> &str
fn event_type(&self) -> &str
이벤트 타입명 (로깅 및 라우팅에 사용)