pub struct CatalogService { /* private fields */ }Expand description
The plugin store’s catalog engine, held in crate::state::AppState.
Implementations§
Source§impl CatalogService
impl CatalogService
pub fn new(cfg: &Config) -> Self
Sourcepub async fn refresh(&self)
pub async fn refresh(&self)
Re-fetch + verify every configured remote registry, updating the in-memory cache. Best-effort: a failing source keeps its prior cached entries and records the error.
Sourcepub fn view(
&self,
modules: &[ModuleManifest],
registrations: &[ModuleRegistration],
) -> RegistryView
pub fn view( &self, modules: &[ModuleManifest], registrations: &[ModuleRegistration], ) -> RegistryView
Merge bundled + remote catalogs with live state into the store view. modules = AppState.modules
(compiled-in), registrations = installed sidecars.
Auto Trait Implementations§
impl !Freeze for CatalogService
impl !RefUnwindSafe for CatalogService
impl !UnwindSafe for CatalogService
impl Send for CatalogService
impl Sync for CatalogService
impl Unpin for CatalogService
impl UnsafeUnpin for CatalogService
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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