Skip to main content

DataBackend

Trait DataBackend 

Source
pub trait DataBackend<IS: InstrumentSpec> {
    // Required methods
    fn new(key: Option<&str>) -> Self;
    fn file_name_postpend() -> &'static str;
    fn stream_in(
        &mut self,
        buf_reader: BufReader<File>,
    ) -> impl Future<Output = impl ExactSizeIterator<Item = TradeTradeTimestamp<IS>>> + Send;
}

Required Methods§

Source

fn new(key: Option<&str>) -> Self

Source

fn file_name_postpend() -> &'static str

Source

fn stream_in( &mut self, buf_reader: BufReader<File>, ) -> impl Future<Output = impl ExactSizeIterator<Item = TradeTradeTimestamp<IS>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<IS: InstrumentSpec + Send, OB: OrdersBackend<IS> + Send> DataBackend<IS> for Databento<IS, OB>