pub struct StatsDashboard { /* private fields */ }
Expand description
Statistics dashboard
Implementations§
Source§impl StatsDashboard
impl StatsDashboard
Sourcepub fn new(config: DashboardConfig) -> Self
pub fn new(config: DashboardConfig) -> Self
Create new statistics dashboard
Sourcepub fn config(&self) -> &DashboardConfig
pub fn config(&self) -> &DashboardConfig
Get the dashboard configuration
Sourcepub async fn update_node_stats(&self, stats: NodeStats)
pub async fn update_node_stats(&self, stats: NodeStats)
Update node statistics
Sourcepub async fn update_nat_stats(&self, stats: NatTraversalStatistics)
pub async fn update_nat_stats(&self, stats: NatTraversalStatistics)
Update NAT traversal statistics
Sourcepub async fn handle_nat_event(&self, event: &NatTraversalEvent)
pub async fn handle_nat_event(&self, event: &NatTraversalEvent)
Handle NAT traversal event
Auto Trait Implementations§
impl Freeze for StatsDashboard
impl !RefUnwindSafe for StatsDashboard
impl Send for StatsDashboard
impl Sync for StatsDashboard
impl Unpin for StatsDashboard
impl !UnwindSafe for StatsDashboard
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