Skip to main content

start_callback_server

Function start_callback_server 

Source
pub async fn start_callback_server<F, Fut>(
    handler: F,
) -> Result<String, Box<dyn Error + Send + Sync>>
where F: Fn(RapCallback) -> Fut + Send + Sync + 'static, Fut: Future<Output = ()> + Send + 'static,
Expand description

Start a callback server that passes each RapCallback to the given handler. Returns the base URL that RAP tools should POST results to.