Trait ObjectCachePlaceholder

Source
pub trait ObjectCachePlaceholder<V: Value>: Send + Sync {
    // Required method
    fn complete(self: Box<Self>, value: Option<&V>);
}

Required Methods§

Source

fn complete(self: Box<Self>, value: Option<&V>)

Consumes itself in delivering the cache value for which the placeholder was reserved. Passing None for value should not be inserted into the cache, but interpreted as an incomplete search.

Implementors§