pub struct PredictionServiceClient { /* private fields */ }
Implementations§
Source§impl PredictionServiceClient
impl PredictionServiceClient
pub fn new(channel: Channel) -> Self
pub fn classify_opt( &self, req: &ClassificationRequest, opt: CallOption, ) -> Result<ClassificationResponse>
pub fn classify( &self, req: &ClassificationRequest, ) -> Result<ClassificationResponse>
pub fn classify_async_opt( &self, req: &ClassificationRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<ClassificationResponse>>
pub fn classify_async( &self, req: &ClassificationRequest, ) -> Result<ClientUnaryReceiver<ClassificationResponse>>
pub fn regress_opt( &self, req: &RegressionRequest, opt: CallOption, ) -> Result<RegressionResponse>
pub fn regress(&self, req: &RegressionRequest) -> Result<RegressionResponse>
pub fn regress_async_opt( &self, req: &RegressionRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<RegressionResponse>>
pub fn regress_async( &self, req: &RegressionRequest, ) -> Result<ClientUnaryReceiver<RegressionResponse>>
pub fn predict_opt( &self, req: &PredictRequest, opt: CallOption, ) -> Result<PredictResponse>
pub fn predict(&self, req: &PredictRequest) -> Result<PredictResponse>
pub fn predict_async_opt( &self, req: &PredictRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<PredictResponse>>
pub fn predict_async( &self, req: &PredictRequest, ) -> Result<ClientUnaryReceiver<PredictResponse>>
pub fn multi_inference_opt( &self, req: &MultiInferenceRequest, opt: CallOption, ) -> Result<MultiInferenceResponse>
pub fn multi_inference( &self, req: &MultiInferenceRequest, ) -> Result<MultiInferenceResponse>
pub fn multi_inference_async_opt( &self, req: &MultiInferenceRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<MultiInferenceResponse>>
pub fn multi_inference_async( &self, req: &MultiInferenceRequest, ) -> Result<ClientUnaryReceiver<MultiInferenceResponse>>
pub fn get_model_metadata_opt( &self, req: &GetModelMetadataRequest, opt: CallOption, ) -> Result<GetModelMetadataResponse>
pub fn get_model_metadata( &self, req: &GetModelMetadataRequest, ) -> Result<GetModelMetadataResponse>
pub fn get_model_metadata_async_opt( &self, req: &GetModelMetadataRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<GetModelMetadataResponse>>
pub fn get_model_metadata_async( &self, req: &GetModelMetadataRequest, ) -> Result<ClientUnaryReceiver<GetModelMetadataResponse>>
pub fn spawn<F>(&self, f: F)
Trait Implementations§
Source§impl Clone for PredictionServiceClient
impl Clone for PredictionServiceClient
Source§fn clone(&self) -> PredictionServiceClient
fn clone(&self) -> PredictionServiceClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PredictionServiceClient
impl !RefUnwindSafe for PredictionServiceClient
impl Send for PredictionServiceClient
impl Sync for PredictionServiceClient
impl Unpin for PredictionServiceClient
impl !UnwindSafe for PredictionServiceClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more