pub struct StateConfig {
pub backend: StateBackend,
pub auto_checkpoint: bool,
pub checkpoint_interval: Duration,
pub max_checkpoints: usize,
pub enable_ttl: bool,
pub default_ttl: Duration,
}Expand description
Configuration for state management
Fields§
§backend: StateBackendState backend type
auto_checkpoint: boolEnable automatic checkpointing
checkpoint_interval: DurationCheckpoint interval
max_checkpoints: usizeMaximum checkpoint history to keep
enable_ttl: boolEnable state TTL (time-to-live)
default_ttl: DurationDefault TTL for state entries
Trait Implementations§
Source§impl Clone for StateConfig
impl Clone for StateConfig
Source§fn clone(&self) -> StateConfig
fn clone(&self) -> StateConfig
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 StateConfig
impl Debug for StateConfig
Auto Trait Implementations§
impl Freeze for StateConfig
impl RefUnwindSafe for StateConfig
impl Send for StateConfig
impl Sync for StateConfig
impl Unpin for StateConfig
impl UnwindSafe for StateConfig
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