pub struct InteractiveDashboard { /* private fields */ }Expand description
Advanced interactive dashboard for real-time metrics visualization
Implementations§
Source§impl InteractiveDashboard
impl InteractiveDashboard
Sourcepub fn new(
config: DashboardConfig,
renderer: Box<dyn RenderingEngine + Send + Sync>,
) -> Result<Self>
pub fn new( config: DashboardConfig, renderer: Box<dyn RenderingEngine + Send + Sync>, ) -> Result<Self>
Create new interactive dashboard
Sourcepub fn add_widget(
&self,
widget: Box<dyn InteractiveWidget + Send + Sync>,
) -> Result<()>
pub fn add_widget( &self, widget: Box<dyn InteractiveWidget + Send + Sync>, ) -> Result<()>
Add widget to dashboard
Sourcepub fn remove_widget(&self, widget_id: &str) -> Result<()>
pub fn remove_widget(&self, widget_id: &str) -> Result<()>
Remove widget from dashboard
Sourcepub fn register_data_source(
&self,
source: Box<dyn DataSource + Send + Sync>,
) -> Result<()>
pub fn register_data_source( &self, source: Box<dyn DataSource + Send + Sync>, ) -> Result<()>
Register data source
Sourcepub fn handle_interaction(&self, event: WidgetEvent) -> Result<()>
pub fn handle_interaction(&self, event: WidgetEvent) -> Result<()>
Handle user interaction
Sourcepub fn update_state(&self, updates: HashMap<String, Value>) -> Result<()>
pub fn update_state(&self, updates: HashMap<String, Value>) -> Result<()>
Update dashboard state
Sourcepub fn render(&self, context: &RenderContext) -> Result<()>
pub fn render(&self, context: &RenderContext) -> Result<()>
Render dashboard
Sourcepub fn process_updates(&self) -> Result<()>
pub fn process_updates(&self) -> Result<()>
Process real-time updates
Sourcepub fn config(&self) -> &DashboardConfig
pub fn config(&self) -> &DashboardConfig
Get dashboard configuration
Sourcepub fn state(&self) -> DashboardState
pub fn state(&self) -> DashboardState
Get current dashboard state
Sourcepub fn export_config(&self) -> Result<Value>
pub fn export_config(&self) -> Result<Value>
Export dashboard configuration
Sourcepub fn import_config(&mut self, config_data: Value) -> Result<()>
pub fn import_config(&mut self, config_data: Value) -> Result<()>
Import dashboard configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InteractiveDashboard
impl RefUnwindSafe for InteractiveDashboard
impl Send for InteractiveDashboard
impl Sync for InteractiveDashboard
impl Unpin for InteractiveDashboard
impl UnwindSafe for InteractiveDashboard
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.