pub trait AsyncRequestHandler<P: ProtocolMarker>: Send + Sync {
    // Required method
    fn handle_request<'life0, 'async_trait>(
        &'life0 self,
        request: Request<P>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

AsyncRequestHandler handles incoming FIDL requests asynchronously.

Required Methods§

source

fn handle_request<'life0, 'async_trait>( &'life0 self, request: Request<P> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles a request. If it returns an error, the server will shut down.

Implementors§