Skip to main content

serve_connection

Function serve_connection 

Source
pub async fn serve_connection(
    stream: Box<dyn MeshStream>,
    svc: Arc<WorkloadHostService>,
) -> Result<(), MeshError>
Expand description

Serve one connection as the target’s workload-host until the peer closes it. Each request may fetch its payload over the same stream.