Skip to main content

EventSource

Trait EventSource 

Source
pub trait EventSource {
    // Required methods
    fn sensor_size(&self) -> (usize, usize);
    fn timestamp_scale_ms(&self) -> f64;
    fn next_event(&mut self) -> Result<Option<RawEvent>, IoError>;
}
Expand description

A bounded-memory source of events. Readers parse on demand so multi-gigabyte files never need to be resident; the consumer decides what to accumulate.

Required Methods§

Source

fn sensor_size(&self) -> (usize, usize)

Source

fn timestamp_scale_ms(&self) -> f64

Source

fn next_event(&mut self) -> Result<Option<RawEvent>, IoError>

Returns the next event, or None at end of stream.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§