Function fidl::endpoints::spawn_local_stream_handler

source ยท
pub fn spawn_local_stream_handler<P, F, Fut>(f: F) -> Result<P, Error>
where P: Proxy, F: FnMut(Request<P::Protocol>) -> Fut + 'static, Fut: Future<Output = ()> + 'static,
Expand description

Utility that spawns a new task to handle requests of a particular type, requiring a singlethreaded executor. The requests are handled one at a time.