pub enum StorageBackend {
Memory,
File,
Custom,
}Expand description
Session storage backend type
Variants§
Memory
In-memory storage (no persistence)
File
File-based storage (JSON files)
Custom
Custom external storage (Redis, PostgreSQL, etc.)
Requires a SessionStore implementation registered via SessionManager::with_store().
Use storage_url in config to pass connection details.
Trait Implementations§
Source§impl Clone for StorageBackend
impl Clone for StorageBackend
Source§fn clone(&self) -> StorageBackend
fn clone(&self) -> StorageBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageBackend
impl Debug for StorageBackend
Source§impl Default for StorageBackend
impl Default for StorageBackend
Source§fn default() -> StorageBackend
fn default() -> StorageBackend
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageBackend
impl<'de> Deserialize<'de> for StorageBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StorageBackend
impl Hash for StorageBackend
Source§impl PartialEq for StorageBackend
impl PartialEq for StorageBackend
Source§impl Serialize for StorageBackend
impl Serialize for StorageBackend
impl Eq for StorageBackend
impl StructuralPartialEq for StorageBackend
Auto Trait Implementations§
impl Freeze for StorageBackend
impl RefUnwindSafe for StorageBackend
impl Send for StorageBackend
impl Sync for StorageBackend
impl Unpin for StorageBackend
impl UnsafeUnpin for StorageBackend
impl UnwindSafe for StorageBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.