pub struct RegistryManager { /* private fields */ }Implementations§
Source§impl RegistryManager
impl RegistryManager
pub fn new() -> Self
pub fn with_config(config: BackendConfig) -> Self
Sourcepub async fn connect(&self) -> RegistryResult<String>
pub async fn connect(&self) -> RegistryResult<String>
Eagerly connect to the configured backend. Returns the backend type name. Idempotent: if a backend is already cached, return its name without re-creating it.
pub async fn get_status( &self, model_name: &str, ) -> RegistryResult<Option<ModelStatus>>
pub async fn get_model_record( &self, model_name: &str, ) -> RegistryResult<Option<ModelRecord>>
pub async fn set_status( &self, model_name: &str, provider: ModelProvider, status: ModelStatus, message: Option<String>, ) -> RegistryResult<()>
pub async fn touch_model(&self, model_name: &str) -> RegistryResult<()>
pub async fn delete_model(&self, model_name: &str) -> RegistryResult<()>
pub async fn get_models_by_last_used( &self, limit: Option<u32>, ) -> RegistryResult<Vec<ModelRecord>>
pub async fn get_status_counts(&self) -> RegistryResult<(u32, u32, u32)>
pub async fn try_claim_for_download( &self, model_name: &str, provider: ModelProvider, ) -> RegistryResult<ClaimOutcome>
pub async fn try_reset_error_for_retry( &self, model_name: &str, provider: ModelProvider, ) -> RegistryResult<bool>
Trait Implementations§
Source§impl Clone for RegistryManager
impl Clone for RegistryManager
Source§fn clone(&self) -> RegistryManager
fn clone(&self) -> RegistryManager
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 RegistryManager
impl !UnwindSafe for RegistryManager
impl Freeze for RegistryManager
impl Send for RegistryManager
impl Sync for RegistryManager
impl Unpin for RegistryManager
impl UnsafeUnpin for RegistryManager
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request