pub struct OnlinePredictionServiceClient<T> { /* private fields */ }
Expand description
The Prediction API, which serves predictions for models managed by ModelService.
Implementations§
Source§impl<T> OnlinePredictionServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
impl<T> OnlinePredictionServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
Sourcepub async fn predict(
&mut self,
request: impl IntoRequest<PredictRequest>,
) -> Result<Response<HttpBody>, Status>
pub async fn predict( &mut self, request: impl IntoRequest<PredictRequest>, ) -> Result<Response<HttpBody>, Status>
Performs prediction on the data in the request.
**** REMOVE FROM GENERATED DOCUMENTATION
Trait Implementations§
Source§impl<T: Clone> Clone for OnlinePredictionServiceClient<T>
impl<T: Clone> Clone for OnlinePredictionServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for OnlinePredictionServiceClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for OnlinePredictionServiceClient<T>
impl<T> Send for OnlinePredictionServiceClient<T>where
T: Send,
impl<T> Sync for OnlinePredictionServiceClient<T>where
T: Sync,
impl<T> Unpin for OnlinePredictionServiceClient<T>where
T: Unpin,
impl<T> !UnwindSafe for OnlinePredictionServiceClient<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request