pub struct CachingSession { /* private fields */ }Expand description
Caching session that wraps standard session with article cache
Implementations§
Source§impl CachingSession
impl CachingSession
Sourcepub fn new(client_addr: SocketAddr, cache: Arc<ArticleCache>) -> Self
pub fn new(client_addr: SocketAddr, cache: Arc<ArticleCache>) -> Self
Create a new caching session
Auto Trait Implementations§
impl Freeze for CachingSession
impl !RefUnwindSafe for CachingSession
impl Send for CachingSession
impl Sync for CachingSession
impl Unpin for CachingSession
impl !UnwindSafe for CachingSession
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