pub struct KeyedRequest<K> { /* private fields */ }Expand description
The current attempt in one independent request lane.
Implementations§
Source§impl<K: Clone + PartialEq> KeyedRequest<K>
impl<K: Clone + PartialEq> KeyedRequest<K>
Sourcepub fn begin(&mut self, key: K) -> Request<K>
pub fn begin(&mut self, key: K) -> Request<K>
Replaces the previous attempt, even for the same target.
pub fn is_current(&self, request: &Request<K>) -> bool
Sourcepub fn invalidate(&mut self)
pub fn invalidate(&mut self)
Rejects completions from the current attempt without stopping its work.
Trait Implementations§
Source§impl<K: Debug> Debug for KeyedRequest<K>
impl<K: Debug> Debug for KeyedRequest<K>
Auto Trait Implementations§
impl<K> Forget for KeyedRequest<K>
impl<K> Freeze for KeyedRequest<K>
impl<K> Move for KeyedRequest<K>
impl<K> RefUnwindSafe for KeyedRequest<K>
impl<K> Send for KeyedRequest<K>
impl<K> Sync for KeyedRequest<K>
impl<K> Unpin for KeyedRequest<K>
impl<K> UnsafeUnpin for KeyedRequest<K>
impl<K> UnwindSafe for KeyedRequest<K>
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