pub fn initialize(&mut self) {
        assert!(self.cached_sample.is_none());

        if let Some((timestamp, sample)) = self.store.extract_sample_and_log(
            self.target_timestamp,
            Direction::Forward,
            &self.logger,
        ) {
            self.cached_sample = Some(sample);
            self.target_timestamp = timestamp;
        }
    }
/// Initialize the current advance module.
// Base on the target_timestamp, we will go forward to find the first
// available sample. Once we find a sample, we will update the
// cached_sample and target_timestamp. This function will throw on
// double initialize.
Initialize the current advance module.
Base on the target_timestamp, we will go forward to find the first
available sample. Once we find a sample, we will update the
cached_sample and target_timestamp. This function will throw on
double initialize.
Initialize the current advance module . Base on the target_timestamp we will go forward to find the first available sample . Once we find a sample we will update the cached_sample and target_timestamp . This function will throw on double initialize .
pub fn initialize(&mut self) {
        assert!(self.cached_sample.is_none());
        if let Some((timestamp, sample)) = self.store.extract_sample_and_log(
            self.target_timestamp,
            Direction::Forward,
            &self.logger,
        ) {
            self.cached_sample = Some(sample);
            self.target_timestamp = timestamp;
        }
    }
pub fn initialize ( & mut self ) { assert ! ( self cached_sample is_none ( ) ) ; if let Some ( ( timestamp , sample ) ) = self . store . extract_sample_and_log ( self . target_timestamp , Direction :: Forward , & self . logger , ) { self . cached_sample = Some ( sample ) ; self . target_timestamp = timestamp ; } }
Initialize the current advance module.
Initialize the current advance module .
&mut self
&mut self