pub struct CompiledModelRuntime { /* private fields */ }Expand description
Immutable complete model runtime used by all manager mutations.
Implementations§
Source§impl CompiledModelRuntime
impl CompiledModelRuntime
pub fn catalog(&self) -> &Arc<CatalogSnapshot>
pub fn store(&self) -> &ProviderStoreSnapshot
pub fn provider_state_revision(&self) -> ProviderStateRevision
pub fn model_revision(&self) -> &ModelRevision
pub fn runtime_revision(&self) -> &RuntimeRevision
pub fn providers(&self) -> &[CompiledProviderState]
pub fn models(&self) -> &BTreeMap<ModelKey, CompiledRuntimeModel>
pub fn model(&self, key: &ModelKey) -> Option<&CompiledRuntimeModel>
pub fn resolve( &self, selection: &ModelSelection, ) -> Result<ResolvedExecutableModel, ModelManagerError>
Sourcepub fn manifest_payload(
&self,
) -> Result<ModelSnapshotPayloadV1, ModelManagerError>
pub fn manifest_payload( &self, ) -> Result<ModelSnapshotPayloadV1, ModelManagerError>
Allocates the secret-free schema-1 payload that run bindings are frozen against.
Trait Implementations§
Source§impl Clone for CompiledModelRuntime
impl Clone for CompiledModelRuntime
Source§fn clone(&self) -> CompiledModelRuntime
fn clone(&self) -> CompiledModelRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CompiledModelRuntime
impl !UnwindSafe for CompiledModelRuntime
impl Freeze for CompiledModelRuntime
impl Send for CompiledModelRuntime
impl Sync for CompiledModelRuntime
impl Unpin for CompiledModelRuntime
impl UnsafeUnpin for CompiledModelRuntime
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