pub enum Cacheable<T> {
Miss(T),
Hit(T),
}Expand description
Represents a cacheable result that can either be a miss or a hit. Used to handle connection caching in the HTTP client provider.
A Miss indicates a newly created connection, while a Hit indicates
a connection that was reused from the pool.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Cacheable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Cacheable<T>where
T: RefUnwindSafe,
impl<T> Send for Cacheable<T>where
T: Send,
impl<T> Sync for Cacheable<T>where
T: Sync,
impl<T> Unpin for Cacheable<T>where
T: Unpin,
impl<T> UnwindSafe for Cacheable<T>where
T: 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