Skip to main content

serve_until

Function serve_until 

Source
pub fn serve_until<F, S>(
    listener: TcpListener,
    should_stop: S,
    handler: F,
) -> Result<()>
where F: Fn(&Request) -> Response + Send + Sync + 'static, S: Fn() -> bool,