pub trait RuntimeModel: Send {
// Required method
fn predict<'life0, 'async_trait>(
&'life0 mut self,
request: PredictRequest,
) -> Pin<Box<dyn Future<Output = Result<RuntimeModelPrediction, RuntimeError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn close_route<'life0, 'async_trait>(
&'life0 mut self,
_request: CloseRouteRequest,
_timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Required Methods§
fn predict<'life0, 'async_trait>(
&'life0 mut self,
request: PredictRequest,
) -> Pin<Box<dyn Future<Output = Result<RuntimeModelPrediction, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn close_route<'life0, 'async_trait>(
&'life0 mut self,
_request: CloseRouteRequest,
_timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".