pub async fn flush(&mut self) -> Result<()> {
        if self.header_is_dirty {
            self.segment_controller
                .write_segments(0, &self.header.to_bytes())
                .await?;
        }
        self.save_current_page(false).await
    }
/// Flushes the outstanding stale contents to disk.
Flushes the outstanding stale contents to disk.
Flushes the outstanding stale contents to disk .
pub async fn flush(&mut self) -> Result<()> {
        if self.header_is_dirty {
            self.segment_controller
                .write_segments(0, &self.header.to_bytes())
                .await?;
        }
        self.save_current_page(false).await
    }
pub async fn flush ( & mut self ) -> Result < ( ) > { if self . header_is_dirty { self . segment_controller . write_segments ( 0 , & self . header . to_bytes ( ) ) . await ? ; } self . save_current_page ( false ) . await }
Flushes the outstanding stale contents to disk.
Flushes the outstanding stale contents to disk .
&mut self
&mut self