Struct pikadick_util::RequestMap
source · pub struct RequestMap<K, V> { /* private fields */ }
Expand description
A type to prevent two async requests from racing the same resource.
Implementations§
source§impl<K, V> RequestMap<K, V>
impl<K, V> RequestMap<K, V>
sourcepub fn new() -> Self
pub fn new() -> Self
Make a new RequestMap
.
Trait Implementations§
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for RequestMap<K, V>
impl<K, V> Send for RequestMap<K, V>where K: Send, V: Send + Sync,
impl<K, V> Sync for RequestMap<K, V>where K: Send, V: Send + Sync,
impl<K, V> Unpin for RequestMap<K, V>where K: Unpin,
impl<K, V> UnwindSafe for RequestMap<K, V>
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