pub trait Runtime:
Send
+ Sync
+ 'static {
// Required method
fn load_session(
&self,
model_path: &Path,
is_encoder: bool,
) -> Result<Box<dyn RuntimeSession>, RuntimeError>;
}Expand description
Owns loaded sessions. One runtime per Engine.
Required Methods§
fn load_session( &self, model_path: &Path, is_encoder: bool, ) -> Result<Box<dyn RuntimeSession>, RuntimeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".