Trait autodep::rpc::worker_server::Worker
source · pub trait Worker: Send + Sync + 'static {
// Required methods
fn compute_inference<'life0, 'async_trait>(
&'life0 self,
request: Request<InferenceTask>
) -> Pin<Box<dyn Future<Output = Result<Response<Inference>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_stats<'life0, 'async_trait>(
&'life0 self,
request: Request<Empty>
) -> Pin<Box<dyn Future<Output = Result<Response<Stats>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with WorkerServer.