Function libredr_common::message::map_cache_data
source · pub fn map_cache_data<R, F>(
hash: &Hash,
data_cache: &DataCache,
f: F
) -> Result<R>where
F: FnOnce(&Data) -> Result<R>,Expand description
Get hash data from data_cache, return result of f(data)
To prevent data copy, data is not returned