Skip to main content

start_callback_server_on

Function start_callback_server_on 

Source
pub fn start_callback_server_on<F, Fut>(
    listener: TcpListener,
    handler: F,
) -> JoinHandle<()> ⓘ
where F: Fn(RapCallback) -> Fut + Send + Sync + 'static, Fut: Future<Output = ()> + Send + 'static,
Expand description

Start the accept loop on a pre-bound listener, dispatching each RapCallback to the given handler. Returns the spawned accept-loop task.