Skip to main content

serve_ops

Function serve_ops 

Source
pub async fn serve_ops(
    listener: TcpListener,
    ops: Ops,
    stop: Receiver<u32>,
) -> Result<(), AppError>
Expand description

Serves the ops endpoints on listener until stop.

ยงErrors

AppError::BadArgument if the HTTP server fails.