Function explorer::api::serve

source ·
async fn serve<API>(
    api: API,
    listen_addr: SocketAddr,
    tls_config: Option<Tls>,
    shutdown_signal: impl Future<Output = ()> + Send + 'static
)where
    API: Filter<Error = Rejection> + Clone + Send + Sync + 'static,
    API::Extract: Reply,