pub struct RegistryComponentContext { /* private fields */ }Expand description
Adapter that lets Registry participate as a ComponentContext.
Wraps the shared Arc<Mutex<Registry>> and delegates resolve_component
to Registry::get. All other ComponentContext methods are no-ops — wasm
only needs component lookups.
Implementations§
Trait Implementations§
Source§impl ComponentContext for RegistryComponentContext
impl ComponentContext for RegistryComponentContext
Source§fn resolve_component(&self, scheme: &str) -> Option<Arc<dyn Component>>
fn resolve_component(&self, scheme: &str) -> Option<Arc<dyn Component>>
Resolve a component by scheme.
Source§fn resolve_language(&self, _name: &str) -> Option<Arc<dyn Language>>
fn resolve_language(&self, _name: &str) -> Option<Arc<dyn Language>>
Resolve a language by name.
Source§fn platform_service(&self) -> Arc<dyn PlatformService> ⓘ
fn platform_service(&self) -> Arc<dyn PlatformService> ⓘ
Access the active platform service.
fn register_route_health_check( &self, _route_id: &str, _check: Arc<dyn AsyncHealthCheck>, )
fn unregister_route_health_check(&self, _route_id: &str)
Source§fn health(&self) -> Arc<dyn HealthCheckRegistry> ⓘ
fn health(&self) -> Arc<dyn HealthCheckRegistry> ⓘ
Access the active health-check registry. Read more
fn route_id(&self) -> Option<&str>
fn register_current_route_health_check(&self, check: Arc<dyn AsyncHealthCheck>)
Auto Trait Implementations§
impl Freeze for RegistryComponentContext
impl RefUnwindSafe for RegistryComponentContext
impl Send for RegistryComponentContext
impl Sync for RegistryComponentContext
impl Unpin for RegistryComponentContext
impl UnsafeUnpin for RegistryComponentContext
impl UnwindSafe for RegistryComponentContext
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