Function tunapanel::serve_with_config [] [src]

pub fn serve_with_config<P, F>(cfg: ServerConfig, f: F) -> Result<()> where
    P: Panel,
    F: Fn(P) + Sync + Send + 'static, 

Serve a panel and configure the server.

f is the callback for panel updates.