/// Return the progress in this DataBuffer
Return the progress in this DataBuffer
Return the progress in this DataBuffer
fn progress(&self) -> SequencerProgress {
        let progress = SequencerProgress::new();
        let progress = if let Some(buffer) = &self.buffer {
            progress.combine(buffer.progress())
        } else {
            progress
        };
        let progress = self.snapshots.iter().fold(progress, |progress, snapshot| {
            progress.combine(snapshot.progress())
        });
        if let Some(persisting) = &self.persisting {
            persisting
                .data
                .data
                .iter()
                .fold(progress, |progress, snapshot| {
                    progress.combine(snapshot.progress())
                })
        } else {
            progress
        }
    }
fn progress ( & self ) -> SequencerProgress { let progress = SequencerProgress :: new ( ) ; let progress = if let Some ( buffer ) = & self . buffer { progress . combine ( buffer . progress ( ) ) } else { progress } ; let progress = self . snapshots . iter ( ) . fold ( progress , | progress , snapshot | { progress . combine ( snapshot . progress ( ) ) } ) ; if let Some ( persisting ) = & self . persisting { persisting . data . data . iter ( ) . fold ( progress , | progress , snapshot | { progress . combine ( snapshot . progress ( ) ) } ) } else { progress } }
Return the progress in this DataBuffer
Return the progress in this DataBuffer
&self