pub struct TaskStoreConfig {
pub max_capacity: Option<usize>,
pub task_ttl: Option<Duration>,
}Expand description
Configuration for InMemoryTaskStore.
Fields§
§max_capacity: Option<usize>Maximum number of tasks to keep in the store. Once exceeded, the oldest
completed/failed tasks are evicted. None means no limit.
task_ttl: Option<Duration>Time-to-live for completed or failed tasks. Tasks in terminal states
older than this duration are evicted on the next write operation.
None means no TTL-based eviction.
Trait Implementations§
Source§impl Clone for TaskStoreConfig
impl Clone for TaskStoreConfig
Source§fn clone(&self) -> TaskStoreConfig
fn clone(&self) -> TaskStoreConfig
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 TaskStoreConfig
impl Debug for TaskStoreConfig
Source§impl Default for TaskStoreConfig
impl Default for TaskStoreConfig
Source§fn default() -> TaskStoreConfig
fn default() -> TaskStoreConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaskStoreConfig
impl RefUnwindSafe for TaskStoreConfig
impl Send for TaskStoreConfig
impl Sync for TaskStoreConfig
impl Unpin for TaskStoreConfig
impl UnsafeUnpin for TaskStoreConfig
impl UnwindSafe for TaskStoreConfig
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