Struct rocket_session_store::memory::MemoryStore
source · [−]pub struct MemoryStore<T> { /* private fields */ }Expand description
An in memory implementation of a session store using hashmaps. Do note that this implementation is just for testing purposes, and should not be used in any real world application.
Implementations
Trait Implementations
Get the value from the store
Set the value from the store
Touch the value, refreshing its expiry time.
Auto Trait Implementations
impl<T> !RefUnwindSafe for MemoryStore<T>
impl<T> Send for MemoryStore<T> where
T: Send,
impl<T> Sync for MemoryStore<T> where
T: Send,
impl<T> Unpin for MemoryStore<T> where
T: Unpin,
impl<T> UnwindSafe for MemoryStore<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more