Function libredr_common::message::insert_map_cache_data

source ยท
pub fn insert_map_cache_data<F>(
    hash: &Hash,
    data_cache: &DataCache,
    f: F,
) -> Result<Hash>
where F: FnOnce(&Data) -> Result<Data>,
Expand description

Get hash data from data_cache, insert result of f(data), return new hash