Trait WithMeta

Source
pub trait WithMeta<K: Eq + Hash + Clone + Send, V: Clone + Sized + Send, E: Clone + Sized + Send + Debug, B: CacheBacking<K, CacheEntry<V, E>>> {
    type Type;

    // Required method
    fn with_meta(self, meta: Option<B::Meta>) -> Self::Type;
}

Required Associated Types§

Required Methods§

Source

fn with_meta(self, meta: Option<B::Meta>) -> Self::Type

Implementations on Foreign Types§

Source§

impl<K: Eq + Hash + Clone + Send, V: Clone + Sized + Send, E: Clone + Sized + Send + Debug, B: CacheBacking<K, CacheEntry<V, E>>> WithMeta<K, V, E, B> for Result<V, E>

Source§

type Type = Result<DataWithMeta<K, V, E, B>, E>

Source§

fn with_meta(self, meta: Option<B::Meta>) -> Self::Type

Implementors§