pub fn spawn_server_detached<P, T, H>(
server_end: ServerEnd<P, T>,
handler: H,
) -> ServerSender<P, T>where
T: Transport + 'static,
P: ServerProtocol<H, T> + 'static,
H: Send + 'static,
Expand description
Creates a Server
from the given ServerEnd
and spawns it on the current fuchsia-async
executor.
The spawned server will handle any incoming requests with the provided handler.
Returns a ServerSender
for the spawned server.