Skip to main content

serve_connection

Function serve_connection 

Source
pub async fn serve_connection<S, H>(
    scheduler: &S,
    socket: S::Socket,
    handler: &H,
    options: &Options,
    cancellation: &Cancellation,
) -> Result<u64, Error>
Expand description

Own one accepted socket through request admission, handler execution, output, uncancellable lane retirement, and finally exclusive socket closure. Await completion after cooperative cancellation; dropping this future is not a join.