Trait Generator

Source
pub trait Generator {
    // Required method
    fn by_seed(
        &self,
        now: NowFn,
        seed: Option<u64>,
        resume_offset: MzOffset,
    ) -> Box<dyn Iterator<Item = (LoadGeneratorOutput, Event<Option<MzOffset>, (Row, Diff)>)>>;
}

Required Methods§

Source

fn by_seed( &self, now: NowFn, seed: Option<u64>, resume_offset: MzOffset, ) -> Box<dyn Iterator<Item = (LoadGeneratorOutput, Event<Option<MzOffset>, (Row, Diff)>)>>

Returns a function that produces rows and batch information.

Implementors§