pub async fn sync_metadata(
        &mut self,
        metadata: &mut NexusMetaData,
    ) -> Result<(), MetaDataError> {
        metadata.header.index_checksum =
            MetaDataIndexEntry::checksum(&metadata.index);
        metadata.header.checksum();
        self.write_index(&metadata).await
    }
/// Update checksums and write out MetaData header + index to disk.
Update checksums and write out MetaData header + index to disk.
Update checksums and write out MetaData header + index to disk .
pub async fn sync_metadata(
        &mut self,
        metadata: &mut NexusMetaData,
    ) -> Result<(), MetaDataError> {
        metadata.header.index_checksum =
            MetaDataIndexEntry::checksum(&metadata.index);
        metadata.header.checksum();
        self.write_index(&metadata).await
    }
pub async fn sync_metadata ( & mut self , metadata : & mut NexusMetaData , ) -> Result < ( ) , MetaDataError > { metadata . header . index_checksum = MetaDataIndexEntry :: checksum ( & metadata . index ) ; metadata . header . checksum ( ) ; self . write_index ( & metadata ) . await }
Update checksums and write out MetaData header + index to disk.
Update checksums and write out MetaData header + index to disk .
&mut self
metadata
&mut NexusMetaData