fn read_config_object(
        buf: &DmaBuf,
        entry: &MetaDataIndexEntry,
    ) -> Result<NexusConfig, MetaDataError> {
        let checksum = crc32::checksum_ieee(buf.as_slice());
        if checksum != entry.data_checksum {
            return Err(MetaDataError::ObjectChecksum {});
        }
        Ok(NexusConfig::from_slice(buf.as_slice())
            .context(DeserializeError {})?)
    }
/// Construct a (config) object from raw data
Construct a (config) object from raw data
Construct a ( config ) object from raw data
fn read_config_object(
        buf: &DmaBuf,
        entry: &MetaDataIndexEntry,
    ) -> Result<NexusConfig, MetaDataError> {
        let checksum = crc32::checksum_ieee(buf.as_slice());
        if checksum != entry.data_checksum {
            return Err(MetaDataError::ObjectChecksum {});
        }
        Ok(NexusConfig::from_slice(buf.as_slice())
            .context(DeserializeError {})?)
    }
fn read_config_object ( buf : & DmaBuf , entry : & MetaDataIndexEntry , ) -> Result < NexusConfig , MetaDataError > { let checksum = crc32 :: checksum_ieee ( buf . as_slice ( ) ) ; if checksum != entry . data_checksum { return Err ( MetaDataError :: ObjectChecksum { } ) ; } Ok ( NexusConfig :: from_slice ( buf . as_slice ( ) ) . context ( DeserializeError { } ) ? ) }
Construct a (config) object from raw data
Construct a ( config ) object from raw data
buf
&DmaBuf
entry
&MetaDataIndexEntry