pub struct NoOpComponentContext;Expand description
Default no-op component context for tests/examples.
Trait Implementations§
Source§impl ComponentContext for NoOpComponentContext
impl ComponentContext for NoOpComponentContext
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 metrics(&self) -> Arc<dyn MetricsCollector>
fn metrics(&self) -> Arc<dyn MetricsCollector>
Access the active metrics collector.
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 NoOpComponentContext
impl RefUnwindSafe for NoOpComponentContext
impl Send for NoOpComponentContext
impl Sync for NoOpComponentContext
impl Unpin for NoOpComponentContext
impl UnsafeUnpin for NoOpComponentContext
impl UnwindSafe for NoOpComponentContext
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RuntimeObservability for Twhere
T: ComponentContext,
impl<T> RuntimeObservability for Twhere
T: ComponentContext,
Source§fn metrics(&self) -> Arc<dyn MetricsCollector>
fn metrics(&self) -> Arc<dyn MetricsCollector>
Active metrics collector. Used for
increment_errors(route_id, label)
per ADR-0012 categories (b′) and (e).Source§fn health(&self) -> Arc<dyn HealthCheckRegistry>
fn health(&self) -> Arc<dyn HealthCheckRegistry>
Active health-check registry. Used for
force_unhealthy_for_route(route_id, name, reason) per ADR-0012
category (g).