pub fn spawn_server<F, P>(server_end: ServerEnd<P>, handler: F)
where P: ProtocolMarker, F: Fn(Request<P>) + Send + 'static,
Expand description

Spawn a request handler for the provided server end.

This function will spawn a detached Task to handle requests. Requests will be handled using the provided handler function.