pub struct ResponseCacheHandle { /* private fields */ }Expand description
App-state handle for invalidation from handlers / event listeners.
Implementations§
Source§impl ResponseCacheHandle
impl ResponseCacheHandle
pub async fn invalidate_prefix(&self, path_prefix: &str) -> u64
Trait Implementations§
Source§impl Clone for ResponseCacheHandle
impl Clone for ResponseCacheHandle
Source§fn clone(&self) -> ResponseCacheHandle
fn clone(&self) -> ResponseCacheHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ResponseCacheHandle
impl !UnwindSafe for ResponseCacheHandle
impl Freeze for ResponseCacheHandle
impl Send for ResponseCacheHandle
impl Sync for ResponseCacheHandle
impl Unpin for ResponseCacheHandle
impl UnsafeUnpin for ResponseCacheHandle
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