pub struct PromotionConfig {
pub promote_threshold: f64,
pub demote_threshold: f64,
pub min_uses_for_promotion: u64,
pub min_uses_for_demotion: u64,
}Expand description
Configuration for promotion behavior.
Fields§
§promote_threshold: f64§demote_threshold: f64§min_uses_for_promotion: u64§min_uses_for_demotion: u64Trait Implementations§
Source§impl Clone for PromotionConfig
impl Clone for PromotionConfig
Source§fn clone(&self) -> PromotionConfig
fn clone(&self) -> PromotionConfig
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 PromotionConfig
impl Debug for PromotionConfig
Auto Trait Implementations§
impl Freeze for PromotionConfig
impl RefUnwindSafe for PromotionConfig
impl Send for PromotionConfig
impl Sync for PromotionConfig
impl Unpin for PromotionConfig
impl UnsafeUnpin for PromotionConfig
impl UnwindSafe for PromotionConfig
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