pub struct SessionCache { /* private fields */ }Implementations§
Source§impl SessionCache
impl SessionCache
pub fn new() -> Self
pub fn discover_cached( &mut self, limit: usize, max_age: Duration, ) -> Vec<AgentSession>
Trait Implementations§
Source§impl Default for SessionCache
impl Default for SessionCache
Source§fn default() -> SessionCache
fn default() -> SessionCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionCache
impl RefUnwindSafe for SessionCache
impl Send for SessionCache
impl Sync for SessionCache
impl Unpin for SessionCache
impl UnsafeUnpin for SessionCache
impl UnwindSafe for SessionCache
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