pub struct Echo;Expand description
Echo inference adapter for tests and local composition.
Trait Implementations§
Source§impl Component for Echo
impl Component for Echo
Source§fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the component. Read more
Source§impl Inference for Echo
impl Inference for Echo
Source§fn predict<'life0, 'async_trait>(
&'life0 self,
request: PredictRequest,
) -> Pin<Box<dyn Future<Output = Result<PredictResponse, InferenceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn predict<'life0, 'async_trait>(
&'life0 self,
request: PredictRequest,
) -> Pin<Box<dyn Future<Output = Result<PredictResponse, InferenceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute one prediction request against the serving runtime.
Source§fn descriptor(&self) -> InferenceDescriptor
fn descriptor(&self) -> InferenceDescriptor
Return the adapter descriptor and executable permission envelope.
Source§impl RequestResponse<PredictRequest, PredictResponse> for Echo
impl RequestResponse<PredictRequest, PredictResponse> for Echo
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
input: PredictRequest,
) -> Pin<Box<dyn Future<Output = AppResult<PredictResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
input: PredictRequest,
) -> Pin<Box<dyn Future<Output = AppResult<PredictResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the request and return a single response.
Auto Trait Implementations§
impl Freeze for Echo
impl RefUnwindSafe for Echo
impl Send for Echo
impl Sync for Echo
impl Unpin for Echo
impl UnsafeUnpin for Echo
impl UnwindSafe for Echo
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