pub struct PromotePolicy {
pub enabled: bool,
pub budget_bytes: u64,
pub max_node_bytes: u64,
pub horizon: u64,
pub rent_per_byte: u64,
pub min_hits: u32,
}Expand description
The pre-registered promotion policy knobs (recorded verbatim in a receipt).
Fields§
§enabled: boolMaster switch; false (the default) makes the whole layer a no-op.
budget_bytes: u64Durable store byte budget (promoted output bytes).
max_node_bytes: u64A bigger output is never promoted (no giant final answers).
horizon: u64Observation events the governor extrapolates future demand over.
rent_per_byte: u64Storage rent, work-units per output byte per horizon.
min_hits: u32Reuse events required before promotion is considered.
Trait Implementations§
Source§impl Clone for PromotePolicy
impl Clone for PromotePolicy
impl Copy for PromotePolicy
Source§impl Debug for PromotePolicy
impl Debug for PromotePolicy
Auto Trait Implementations§
impl Freeze for PromotePolicy
impl RefUnwindSafe for PromotePolicy
impl Send for PromotePolicy
impl Sync for PromotePolicy
impl Unpin for PromotePolicy
impl UnsafeUnpin for PromotePolicy
impl UnwindSafe for PromotePolicy
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