pub struct MemoryStore<V>where
V: Clone,{ /* private fields */ }Expand description
In-memory Store backed by a FIFO queue.
Implementations§
Trait Implementations§
Source§impl<V> Default for MemoryStore<V>where
V: Clone,
impl<V> Default for MemoryStore<V>where
V: Clone,
Source§impl<V> Store<V> for MemoryStore<V>
impl<V> Store<V> for MemoryStore<V>
Source§fn pop_oldest(&self) -> AppResult<Option<V>>
fn pop_oldest(&self) -> AppResult<Option<V>>
Remove and return the oldest value, if any.
Source§fn last_activity(&self) -> AppResult<Instant>
fn last_activity(&self) -> AppResult<Instant>
Return the last activity timestamp.
Auto Trait Implementations§
impl<V> !Freeze for MemoryStore<V>
impl<V> !RefUnwindSafe for MemoryStore<V>
impl<V> Send for MemoryStore<V>where
V: Send,
impl<V> Sync for MemoryStore<V>where
V: Send,
impl<V> Unpin for MemoryStore<V>where
V: Unpin,
impl<V> UnsafeUnpin for MemoryStore<V>
impl<V> UnwindSafe for MemoryStore<V>where
V: 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