pub struct GlanceAdapter {
pub budget: GlanceBudget,
pub ack_ms: u64,
}Expand description
The shared one-card adapter for every “one card plus one ack” tier.
Constraint: a device at or below the “one card plus one ack” tier MUST
configure this adapter rather than write its own card reducer. The HUD
glasses tier and watch glance tier share this single type, differing only by
GlanceBudget and crate::AckChannel.
Soften path: a bespoke LocalAdapter is reserved for surfaces that are
genuinely richer than a glance, and the adapter introduction must document
the architectural reason. To relax the rule globally, extend
GlanceBudget with the new capability so one-card tiers stay unified;
drop to a bespoke adapter only after that extension cannot express the need.
Fields§
§budget: GlanceBudgetLocal fitting budget.
ack_ms: u64Ack duration in modeled milliseconds.
Implementations§
Source§impl GlanceAdapter
impl GlanceAdapter
Sourcepub fn new(budget: GlanceBudget, ack_ms: u64) -> Self
pub fn new(budget: GlanceBudget, ack_ms: u64) -> Self
Builds an adapter for one glance budget.
Trait Implementations§
Source§impl Clone for GlanceAdapter
impl Clone for GlanceAdapter
Source§fn clone(&self) -> GlanceAdapter
fn clone(&self) -> GlanceAdapter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more