Skip to main content

Store

Trait Store 

Source
pub trait Store {
    type SampleType;

    // Required method
    fn get_sample_at_timestamp(
        &mut self,
        timestamp: SystemTime,
        direction: Direction,
    ) -> Result<Option<(SystemTime, Self::SampleType)>>;
}

Required Associated Types§

Required Methods§

Source

fn get_sample_at_timestamp( &mut self, timestamp: SystemTime, direction: Direction, ) -> Result<Option<(SystemTime, Self::SampleType)>>

Return the sample time and data frame. Needs to be implemented by all stores.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§