pub enum StateBackend {
Memory,
File {
path: PathBuf,
},
Redis {
url: String,
key_prefix: String,
},
Custom {
name: String,
},
}Expand description
Backend type for state storage
Variants§
Memory
In-memory state (not persistent across restarts)
File
File-based state (persistent)
Redis
Redis backend (distributed, scalable)
Fields
Custom
Custom backend (extensible)
Trait Implementations§
Source§impl Clone for StateBackend
impl Clone for StateBackend
Source§fn clone(&self) -> StateBackend
fn clone(&self) -> StateBackend
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 StateBackend
impl Debug for StateBackend
Source§impl PartialEq for StateBackend
impl PartialEq for StateBackend
impl StructuralPartialEq for StateBackend
Auto Trait Implementations§
impl Freeze for StateBackend
impl RefUnwindSafe for StateBackend
impl Send for StateBackend
impl Sync for StateBackend
impl Unpin for StateBackend
impl UnwindSafe for StateBackend
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