use std::future::Future; use crate::entities::WidgetId; use crate::value_objects::{Layout, WidgetState}; pub trait BroadcastPort { type Error; fn push_screen_update( &self, layout: &Layout, widgets: &[(WidgetId, WidgetState)], ) -> impl Future> + Send; fn push_data_update( &self, updates: &[(WidgetId, WidgetState)], ) -> impl Future> + Send; }