Enum libp2p_gossipsub::time_cache::Entry [−][src]
pub enum Entry<'a, K: 'a, V: 'a> { Occupied(OccupiedEntry<'a, K, V>), Vacant(VacantEntry<'a, K, V>), }
Variants
Occupied(OccupiedEntry<'a, K, V>)
Vacant(VacantEntry<'a, K, V>)
Implementations
impl<'a, K: 'a, V: 'a> Entry<'a, K, V> where
K: Eq + Hash + Clone,
[src]
impl<'a, K: 'a, V: 'a> Entry<'a, K, V> where
K: Eq + Hash + Clone,
[src]pub fn or_insert_with<F: FnOnce() -> V>(self, default: F) -> &'a mut V
[src]
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for Entry<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for Entry<'a, K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<'a, K, V> Sync for Entry<'a, K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<'a, K, V> Unpin for Entry<'a, K, V> where
K: Unpin,
K: Unpin,