pub struct CacheWarmup {
pub sources: Vec<String>,
pub priority: CachePriority,
pub max_warmup_ms: u64,
}Expand description
Cache warmup configuration.
Fields§
§sources: Vec<String>§priority: CachePriority§max_warmup_ms: u64Implementations§
Source§impl CacheWarmup
impl CacheWarmup
pub fn new(sources: Vec<String>) -> Self
pub fn with_priority(self, p: CachePriority) -> Self
pub fn source_count(&self) -> usize
Trait Implementations§
Source§impl Clone for CacheWarmup
impl Clone for CacheWarmup
Source§fn clone(&self) -> CacheWarmup
fn clone(&self) -> CacheWarmup
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 moreAuto Trait Implementations§
impl Freeze for CacheWarmup
impl RefUnwindSafe for CacheWarmup
impl Send for CacheWarmup
impl Sync for CacheWarmup
impl Unpin for CacheWarmup
impl UnsafeUnpin for CacheWarmup
impl UnwindSafe for CacheWarmup
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