pub struct Guard<'a, Key, Val, We, B, L> {
cache: &'a mut Cache<Key, Val, We, B, L>,
placeholder: SharedPlaceholder,
inserted: bool,
}Fields§
§cache: &'a mut Cache<Key, Val, We, B, L>§placeholder: SharedPlaceholder§inserted: boolImplementations§
Source§impl<Key: Eq + Hash, Val, We: Weighter<Key, Val>, B: BuildHasher, L: Lifecycle<Key, Val>> Guard<'_, Key, Val, We, B, L>
impl<Key: Eq + Hash, Val, We: Weighter<Key, Val>, B: BuildHasher, L: Lifecycle<Key, Val>> Guard<'_, Key, Val, We, B, L>
Sourcepub fn insert_with_lifecycle(self, value: Val) -> L::RequestState
pub fn insert_with_lifecycle(self, value: Val) -> L::RequestState
Inserts the value into the placeholder
fn insert_internal( self, value: Val, return_lcs: bool, ) -> Option<L::RequestState>
Trait Implementations§
Auto Trait Implementations§
impl<'a, Key, Val, We, B, L> Freeze for Guard<'a, Key, Val, We, B, L>
impl<'a, Key, Val, We, B, L> RefUnwindSafe for Guard<'a, Key, Val, We, B, L>where
B: RefUnwindSafe,
We: RefUnwindSafe,
L: RefUnwindSafe,
Key: RefUnwindSafe,
Val: RefUnwindSafe,
impl<'a, Key, Val, We, B, L> Send for Guard<'a, Key, Val, We, B, L>
impl<'a, Key, Val, We, B, L> Sync for Guard<'a, Key, Val, We, B, L>
impl<'a, Key, Val, We, B, L> Unpin for Guard<'a, Key, Val, We, B, L>
impl<'a, Key, Val, We, B, L> !UnwindSafe for Guard<'a, Key, Val, We, B, L>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more