Skip to main content

EventDecoder

Trait EventDecoder 

Source
pub trait EventDecoder: Send + Sync {
    // Required method
    fn decode(&self, id: EventId, bytes: &[u8]) -> Result<DecodedEvent>;
}
Expand description

Event decoder: convert raw bytes to structured events

Required Methods§

Source

fn decode(&self, id: EventId, bytes: &[u8]) -> Result<DecodedEvent>

Decode raw event bytes

Implementors§