Skip to main content

RuntimeModel

Trait RuntimeModel 

Source
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§

Source

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§

Source

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".

Implementors§