pub struct CachedResponse { /* private fields */ }Expand description
Response wrapper that indicates whether content came from cache
Implementations§
Source§impl CachedResponse
impl CachedResponse
Sourcepub fn is_from_cache(&self) -> bool
pub fn is_from_cache(&self) -> bool
Check if this response came from cache
Sourcepub fn content_length(&self) -> usize
pub fn content_length(&self) -> usize
Get the content length
Auto Trait Implementations§
impl !Freeze for CachedResponse
impl RefUnwindSafe for CachedResponse
impl Send for CachedResponse
impl Sync for CachedResponse
impl Unpin for CachedResponse
impl UnwindSafe for CachedResponse
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