pub trait EventParser {
type Error;
// Required methods
fn parse_kind(&self) -> Result<EventKind, Self::Error>;
fn parse_event(&self) -> Result<Event, Self::Error>;
}Expand description
A helper trait meant to be implemented by raw event types
Required Associated Types§
Required Methods§
Sourcefn parse_kind(&self) -> Result<EventKind, Self::Error>
fn parse_kind(&self) -> Result<EventKind, Self::Error>
Should parse kind cheaply without allocations
Sourcefn parse_event(&self) -> Result<Event, Self::Error>
fn parse_event(&self) -> Result<Event, Self::Error>
Parse the whole events