Function spawn_server_detached

Source
pub fn spawn_server_detached<T, P, H>(
    server_end: ServerEnd<T, P>,
    handler: H,
) -> ServerSender<T, P>
where T: Transport + 'static, P: ServerProtocol<T, H> + '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.