Trait PredictionService
Source pub trait PredictionService {
// Required methods
fn classify(
&mut self,
ctx: RpcContext<'_>,
req: ClassificationRequest,
sink: UnarySink<ClassificationResponse>,
);
fn regress(
&mut self,
ctx: RpcContext<'_>,
req: RegressionRequest,
sink: UnarySink<RegressionResponse>,
);
fn predict(
&mut self,
ctx: RpcContext<'_>,
req: PredictRequest,
sink: UnarySink<PredictResponse>,
);
fn multi_inference(
&mut self,
ctx: RpcContext<'_>,
req: MultiInferenceRequest,
sink: UnarySink<MultiInferenceResponse>,
);
fn get_model_metadata(
&mut self,
ctx: RpcContext<'_>,
req: GetModelMetadataRequest,
sink: UnarySink<GetModelMetadataResponse>,
);
}