Skip to main content

InstrumentsSnapshotReader

Trait InstrumentsSnapshotReader 

Source
pub trait InstrumentsSnapshotReader: Send + Sync {
    // Required methods
    fn get_latest_instruments_snapshot_id_sync(&self) -> Result<Option<i64>>;
    fn load_instruments_snapshot_sync(
        &self,
        snapshot_id: i64,
    ) -> Result<InstrumentsSnapshotData>;
}
Expand description

Instruments snapshot loader.

Required Methods§

Source

fn get_latest_instruments_snapshot_id_sync(&self) -> Result<Option<i64>>

Load the latest instruments snapshot ID.

Source

fn load_instruments_snapshot_sync( &self, snapshot_id: i64, ) -> Result<InstrumentsSnapshotData>

Load instruments snapshot data for a given snapshot ID.

Implementors§