pub enum RcuCacheInsertionResult<V> {
Inserted,
Updated(V),
Evicted(V),
}Variants§
Inserted
The entry was inserted.
Updated(V)
The entry was updated.
The old value is returned.
Evicted(V)
The entry was inserted and caused another entry to be evicted.
The evicted value is returned.
Auto Trait Implementations§
impl<V> Freeze for RcuCacheInsertionResult<V>where
V: Freeze,
impl<V> RefUnwindSafe for RcuCacheInsertionResult<V>where
V: RefUnwindSafe,
impl<V> Send for RcuCacheInsertionResult<V>where
V: Send,
impl<V> Sync for RcuCacheInsertionResult<V>where
V: Sync,
impl<V> Unpin for RcuCacheInsertionResult<V>where
V: Unpin,
impl<V> UnsafeUnpin for RcuCacheInsertionResult<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for RcuCacheInsertionResult<V>where
V: UnwindSafe,
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more