pub struct WarmupPlan {
pub entries_to_warm: Vec<String>,
pub estimated_bytes: usize,
pub estimated_hit_improvement: f64,
}Expand description
A WarmupPlan produced by CacheWarmer::plan_warmup.
Fields§
§entries_to_warm: Vec<String>Keys to pre-load, ordered by descending priority.
estimated_bytes: usizeTotal byte cost of all entries in the plan.
estimated_hit_improvement: f64Estimated improvement in hit rate (0.0–1.0).
Trait Implementations§
Source§impl Clone for WarmupPlan
impl Clone for WarmupPlan
Source§fn clone(&self) -> WarmupPlan
fn clone(&self) -> WarmupPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WarmupPlan
impl RefUnwindSafe for WarmupPlan
impl Send for WarmupPlan
impl Sync for WarmupPlan
impl Unpin for WarmupPlan
impl UnsafeUnpin for WarmupPlan
impl UnwindSafe for WarmupPlan
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