pub struct DashboardServer { /* private fields */ }
Implementations§
Source§impl DashboardServer
impl DashboardServer
pub fn new(storage: Arc<dyn Storage>, config: DashboardConfig) -> Self
Sourcepub async fn start(&self) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn start(&self) -> Result<(), Box<dyn Error + Send + Sync>>
Start the dashboard server
Sourcepub fn websocket_manager(&self) -> Arc<WebSocketManager>
pub fn websocket_manager(&self) -> Arc<WebSocketManager>
Get the WebSocket manager for external use
Sourcepub fn dashboard_service(&self) -> Arc<DashboardService>
pub fn dashboard_service(&self) -> Arc<DashboardService>
Get the dashboard service for external use
Auto Trait Implementations§
impl Freeze for DashboardServer
impl !RefUnwindSafe for DashboardServer
impl Send for DashboardServer
impl Sync for DashboardServer
impl Unpin for DashboardServer
impl !UnwindSafe for DashboardServer
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