serve

Function serve 

Source
pub async fn serve(timer_loop: Rc<Loop>, requests: WakeAlarmsRequestStream)
Expand description

Serves a single Wake API client.

This function processes incoming requests from a fta::WakeAlarmsRequestStream, handling each request by calling handle_request. It continues to process requests until the stream is exhausted.

ยงArgs

  • timer_loop: A reference-counted pointer to the Loop that manages timers.
  • requests: The stream of incoming fta::WakeAlarmsRequest from a client.