Struct moka::future::BlockingOp
source · [−]pub struct BlockingOp<'a, K, V, S>(_);
This is supported on crate feature
future
only.Implementations
sourceimpl<'a, K, V, S> BlockingOp<'a, K, V, S> where
K: Hash + Eq + Send + Sync + 'static,
V: Clone + Send + Sync + 'static,
S: BuildHasher + Clone + Send + Sync + 'static,
impl<'a, K, V, S> BlockingOp<'a, K, V, S> where
K: Hash + Eq + Send + Sync + 'static,
V: Clone + Send + Sync + 'static,
S: BuildHasher + Clone + Send + Sync + 'static,
sourcepub fn insert(&self, key: K, value: V)
pub fn insert(&self, key: K, value: V)
Blocking insert to call outside of asynchronous contexts.
This method is intended for use cases where you are inserting from synchronous code.
sourcepub fn invalidate<Q>(&self, key: &Q) where
Arc<K>: Borrow<Q>,
Q: Hash + Eq + ?Sized,
pub fn invalidate<Q>(&self, key: &Q) where
Arc<K>: Borrow<Q>,
Q: Hash + Eq + ?Sized,
Blocking invalidate to call outside of asynchronous contexts.
This method is intended for use cases where you are invalidating from synchronous code.
Auto Trait Implementations
impl<'a, K, V, S> !RefUnwindSafe for BlockingOp<'a, K, V, S>
impl<'a, K, V, S> Send for BlockingOp<'a, K, V, S> where
K: Send + Sync,
S: Sync,
V: Send + Sync,
impl<'a, K, V, S> Sync for BlockingOp<'a, K, V, S> where
K: Send + Sync,
S: Sync,
V: Send + Sync,
impl<'a, K, V, S> Unpin for BlockingOp<'a, K, V, S>
impl<'a, K, V, S> !UnwindSafe for BlockingOp<'a, K, V, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more