Trait cache::ValueMapFn

source ·
pub trait ValueMapFn<V1, V2>: Fn(ArcResult<&V1>) -> ArcResult<V2> + Send + Sync + Any { }
Expand description

A function for mapping a cached value to another value.

Implementors§

source§

impl<V1, V2, T: Fn(ArcResult<&V1>) -> ArcResult<V2> + Send + Sync + Any> ValueMapFn<V1, V2> for T