pub trait OtlpParser {
// Required methods
fn parse_file(&self, path: &Path) -> Result<ParsedTelemetry>;
fn parse_bytes(&self, data: &[u8]) -> Result<ParsedTelemetry>;
}Expand description
Trait for parsing OTLP data from different formats
Required Methods§
Sourcefn parse_file(&self, path: &Path) -> Result<ParsedTelemetry>
fn parse_file(&self, path: &Path) -> Result<ParsedTelemetry>
Parse OTLP data from a file
Sourcefn parse_bytes(&self, data: &[u8]) -> Result<ParsedTelemetry>
fn parse_bytes(&self, data: &[u8]) -> Result<ParsedTelemetry>
Parse OTLP data from bytes
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".