Function spawn_client_detached

Source
pub fn spawn_client_detached<P, T, H>(
    client_end: ClientEnd<P, T>,
    handler: H,
) -> ClientSender<P, T>
where P: ClientProtocol<H, T> + 'static, T: Transport + 'static, H: Send + 'static,
Expand description

Creates a Client from the given ClientEnd and spawns it on the current fuchsia-async executor.

The spawned client will handle any incoming events with handler.

Returns a ClientSender for the spawned client.