pub struct WarmingTask {
pub id: String,
pub description: String,
pub strategy: WarmingStrategy,
pub priority: WarmingPriority,
pub tags: Vec<CacheTag>,
pub ttl: Option<Duration>,
pub timeout: Duration,
pub allow_concurrent: bool,
}Expand description
Cache warming task definition
Fields§
§id: StringUnique identifier for this warming task
description: StringDescription of what this task warms
strategy: WarmingStrategyStrategy for when to execute this warming
priority: WarmingPriorityPriority for execution ordering
Tags to apply to warmed cache entries
ttl: Option<Duration>TTL for warmed entries
timeout: DurationMaximum time to spend on this warming task
allow_concurrent: boolWhether this task can run concurrently with others
Implementations§
Source§impl WarmingTask
impl WarmingTask
pub fn new(id: String, description: String) -> Self
pub fn with_strategy(self, strategy: WarmingStrategy) -> Self
pub fn with_priority(self, priority: WarmingPriority) -> Self
pub fn with_ttl(self, ttl: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn allow_concurrent(self, allow: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WarmingTask
impl RefUnwindSafe for WarmingTask
impl Send for WarmingTask
impl Sync for WarmingTask
impl Unpin for WarmingTask
impl UnsafeUnpin for WarmingTask
impl UnwindSafe for WarmingTask
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