pub struct InMemoryTaskStoreConfig {
pub entry_ttl: Option<Duration>,
pub max_entries: Option<usize>,
}Expand description
Configuration for the in-memory task store.
Fields§
§entry_ttl: Option<Duration>Maximum age for stored entries before they are purged on access.
max_entries: Option<usize>Maximum number of tasks retained before least-recently-used eviction.
Trait Implementations§
Source§impl Clone for InMemoryTaskStoreConfig
impl Clone for InMemoryTaskStoreConfig
Source§fn clone(&self) -> InMemoryTaskStoreConfig
fn clone(&self) -> InMemoryTaskStoreConfig
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 InMemoryTaskStoreConfig
impl Debug for InMemoryTaskStoreConfig
Source§impl Default for InMemoryTaskStoreConfig
impl Default for InMemoryTaskStoreConfig
Source§fn default() -> InMemoryTaskStoreConfig
fn default() -> InMemoryTaskStoreConfig
Returns the “default value” for a type. Read more
impl Copy for InMemoryTaskStoreConfig
Auto Trait Implementations§
impl Freeze for InMemoryTaskStoreConfig
impl RefUnwindSafe for InMemoryTaskStoreConfig
impl Send for InMemoryTaskStoreConfig
impl Sync for InMemoryTaskStoreConfig
impl Unpin for InMemoryTaskStoreConfig
impl UnsafeUnpin for InMemoryTaskStoreConfig
impl UnwindSafe for InMemoryTaskStoreConfig
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