pub struct CachedRequest<R: GlooRequest + Clone + Ord + Eq + Hash + Debug> {
pub prefix: Cow<'static, str>,
pub request: R,
}Expand description
Cached request.
Fields§
§prefix: Cow<'static, str>Prefix of request URI.
request: RRequest to send.
Trait Implementations§
Source§impl<R, M: 'static> CacheItem<M> for CachedRequest<R>where
R::Response: Clone + Debug + PartialEq,
R: Invalidatable<M> + GlooRequest + PartialEq + Eq + PartialOrd + Ord + Hash + Clone + Debug + 'static,
impl<R, M: 'static> CacheItem<M> for CachedRequest<R>where
R::Response: Clone + Debug + PartialEq,
R: Invalidatable<M> + GlooRequest + PartialEq + Eq + PartialOrd + Ord + Hash + Clone + Debug + 'static,
type Value = <R as GlooRequest>::Response
type Error = <R as GlooRequest>::Error
fn send<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Value, Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn superset(&self) -> Vec<Self>
Source§impl<R: Clone + GlooRequest + Clone + Ord + Eq + Hash + Debug> Clone for CachedRequest<R>
impl<R: Clone + GlooRequest + Clone + Ord + Eq + Hash + Debug> Clone for CachedRequest<R>
Source§fn clone(&self) -> CachedRequest<R>
fn clone(&self) -> CachedRequest<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R, M: 'static> Invalidatable<M> for CachedRequest<R>
impl<R, M: 'static> Invalidatable<M> for CachedRequest<R>
fn invalidated_by(&self, value: &M) -> bool
Source§impl<R: Ord + GlooRequest + Clone + Ord + Eq + Hash + Debug> Ord for CachedRequest<R>
impl<R: Ord + GlooRequest + Clone + Ord + Eq + Hash + Debug> Ord for CachedRequest<R>
Source§fn cmp(&self, other: &CachedRequest<R>) -> Ordering
fn cmp(&self, other: &CachedRequest<R>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<R: PartialEq + GlooRequest + Clone + Ord + Eq + Hash + Debug> PartialEq for CachedRequest<R>
impl<R: PartialEq + GlooRequest + Clone + Ord + Eq + Hash + Debug> PartialEq for CachedRequest<R>
Source§impl<R: PartialOrd + GlooRequest + Clone + Ord + Eq + Hash + Debug> PartialOrd for CachedRequest<R>
impl<R: PartialOrd + GlooRequest + Clone + Ord + Eq + Hash + Debug> PartialOrd for CachedRequest<R>
impl<R: Eq + GlooRequest + Clone + Ord + Eq + Hash + Debug> Eq for CachedRequest<R>
impl<R: GlooRequest + Clone + Ord + Eq + Hash + Debug> StructuralPartialEq for CachedRequest<R>
Auto Trait Implementations§
impl<R> Freeze for CachedRequest<R>where
R: Freeze,
impl<R> RefUnwindSafe for CachedRequest<R>where
R: RefUnwindSafe,
impl<R> Send for CachedRequest<R>where
R: Send,
impl<R> Sync for CachedRequest<R>where
R: Sync,
impl<R> Unpin for CachedRequest<R>where
R: Unpin,
impl<R> UnwindSafe for CachedRequest<R>where
R: 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