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> !Freeze for RequestMap<K, V>
impl<K, V> RefUnwindSafe for RequestMap<K, V>
impl<K, V> Send for RequestMap<K, V>
impl<K, V> Sync for RequestMap<K, V>
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