Skip to main content

RealtimeModelLoadingBackend

Trait RealtimeModelLoadingBackend 

Source
pub trait RealtimeModelLoadingBackend: RealtimeBackend + Sized {
    type Preparation;
    type LoadOptions;

    // Required method
    fn materialize_realtime_model(
        &self,
        preparation: Self::Preparation,
        options: Self::LoadOptions,
    ) -> Result<Self::Model, Self::Error>;
}
Expand description

Materialization contract for an architecture-prepared realtime model.

Architecture code inspects the artifact and produces Self::Preparation before this boundary. The selected backend consumes that neutral plan and owns only device-specific materialization.

Required Associated Types§

Source

type Preparation

Architecture-owned, backend-neutral artifact preparation.

Source

type LoadOptions

Backend-specific materialization policy.

Required Methods§

Source

fn materialize_realtime_model( &self, preparation: Self::Preparation, options: Self::LoadOptions, ) -> Result<Self::Model, Self::Error>

Materializes one architecture-prepared realtime model.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§