Function smol_axum::serve

source ·
pub async fn serve<'ex, I, S>(
    executor: impl Borrow<Executor<'ex>> + Clone + Send + 'ex,
    tcp_listener: I,
    service: S
) -> Result<()>
where I: Incoming + 'static, I::Connection: Send + Unpin, S: Service<Request, Response = Response, Error = Infallible> + Clone + Send + 'static, S::Future: Send,
Expand description

Serve a future using [smol]’s TCP listener.