Function viz::serve[][src]

pub async fn serve(
    req: Request,
    addr: Option<SocketAddr>,
    state: Vec<Arc<dyn StateFactory>>,
    config: Arc<Config>,
    tree: Arc<Tree>
) -> Result<Response>
Expand description

Serves a request and returns a response.