pub struct ModelProviderRegistry { /* private fields */ }Expand description
Immutable exact-version model provider registry.
Lookup starts from the durable descriptor identity, then compares the full durable descriptor against both the startup snapshot and the provider’s current descriptor reference. Provider aliases, model-family names, and fallback selection never participate in this recovery boundary.
Implementations§
Source§impl ModelProviderRegistry
impl ModelProviderRegistry
Sourcepub fn resolve(
&self,
descriptor: &ModelDescriptor,
) -> Result<Arc<dyn Model>, ModelProviderRegistryError>
pub fn resolve( &self, descriptor: &ModelDescriptor, ) -> Result<Arc<dyn Model>, ModelProviderRegistryError>
Resolves and revalidates the exact durable model descriptor.
§Errors
Returns a missing-binding error or fails closed if any descriptor field differs from the immutable startup snapshot.
Trait Implementations§
Source§impl Clone for ModelProviderRegistry
impl Clone for ModelProviderRegistry
Auto Trait Implementations§
impl !RefUnwindSafe for ModelProviderRegistry
impl !UnwindSafe for ModelProviderRegistry
impl Forget for ModelProviderRegistry
impl Freeze for ModelProviderRegistry
impl Move for ModelProviderRegistry
impl Send for ModelProviderRegistry
impl Sync for ModelProviderRegistry
impl Unpin for ModelProviderRegistry
impl UnsafeUnpin for ModelProviderRegistry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more