brane_plr::planner

Function handle

Source
pub async fn handle(
    context: Arc<Context>,
    body: PlanningRequest,
) -> Result<Response, Rejection>
Expand description

This function hosts the actual planner, which uses an event monitor to receive plans which are then planned.

§Arguments

  • context: The general context for this service itself.
  • body: The body given in the planning request.

§Returns

This function doesn’t really return, unless the warp server closes.

§Errors

This function only errors if we fail to listen for events. Otherwise, errors are logged to stderr using the error! macro.