pub struct WidgetSignal {
pub widget_id: u64,
pub essential: bool,
pub priority: f32,
pub staleness_ms: u64,
pub focus_boost: f32,
pub interaction_boost: f32,
pub area_cells: u32,
pub cost_estimate_us: f32,
pub recent_cost_us: f32,
pub estimate_source: CostEstimateSource,
}Expand description
Per-widget scheduling signals captured during rendering.
These signals are used by runtime policies (budgeted refresh, greedy selection) to prioritize which widgets to render when budget is tight.
Fields§
§widget_id: u64Stable widget identifier.
essential: boolWhether this widget is essential.
priority: f32Base priority in [0, 1].
staleness_ms: u64Milliseconds since last render.
focus_boost: f32Focus boost in [0, 1].
interaction_boost: f32Interaction boost in [0, 1].
area_cells: u32Widget area in cells (width * height).
cost_estimate_us: f32Estimated render cost in microseconds.
recent_cost_us: f32Recent measured cost (EMA), if available.
estimate_source: CostEstimateSourceCost estimate provenance.
Implementations§
Trait Implementations§
Source§impl Clone for WidgetSignal
impl Clone for WidgetSignal
Source§fn clone(&self) -> WidgetSignal
fn clone(&self) -> WidgetSignal
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 WidgetSignal
impl Debug for WidgetSignal
Auto Trait Implementations§
impl Freeze for WidgetSignal
impl RefUnwindSafe for WidgetSignal
impl Send for WidgetSignal
impl Sync for WidgetSignal
impl Unpin for WidgetSignal
impl UnwindSafe for WidgetSignal
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