pub struct InsertRequest<K, V> {
pub key: K,
pub entry: CacheEntry<V>,
}Available on crate feature
service only.Expand description
Request to insert a value into the cache.
Fields§
§key: KThe key to insert
entry: CacheEntry<V>The entry to store (includes value and metadata)
Implementations§
Source§impl<K, V> InsertRequest<K, V>
impl<K, V> InsertRequest<K, V>
Sourcepub fn new(key: K, entry: CacheEntry<V>) -> InsertRequest<K, V>
pub fn new(key: K, entry: CacheEntry<V>) -> InsertRequest<K, V>
Creates a new insert request for the given key and entry.
Trait Implementations§
Source§impl<K, V> Clone for InsertRequest<K, V>
impl<K, V> Clone for InsertRequest<K, V>
Source§fn clone(&self) -> InsertRequest<K, V>
fn clone(&self) -> InsertRequest<K, V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<K, V> Freeze for InsertRequest<K, V>
impl<K, V> RefUnwindSafe for InsertRequest<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for InsertRequest<K, V>
impl<K, V> Sync for InsertRequest<K, V>
impl<K, V> Unpin for InsertRequest<K, V>
impl<K, V> UnsafeUnpin for InsertRequest<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for InsertRequest<K, V>where
K: UnwindSafe,
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