Struct libp2p_gossipsub::time_cache::OccupiedEntry
source · [−]pub struct OccupiedEntry<'a, K, V> { /* private fields */ }
Implementations
sourceimpl<'a, K, V> OccupiedEntry<'a, K, V> where
K: Eq + Hash + Clone,
impl<'a, K, V> OccupiedEntry<'a, K, V> where
K: Eq + Hash + Clone,
pub fn into_mut(self) -> &'a mut V
pub fn insert_without_updating_expiration(&mut self, value: V) -> V
pub fn insert_and_update_expiration(&mut self, value: V) -> V
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for OccupiedEntry<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for OccupiedEntry<'a, K, V> where
K: Send,
V: Send,
impl<'a, K, V> Sync for OccupiedEntry<'a, K, V> where
K: Sync,
V: Sync,
impl<'a, K, V> Unpin for OccupiedEntry<'a, K, V> where
K: Unpin,
impl<'a, K, V> !UnwindSafe for OccupiedEntry<'a, K, V>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more