pub struct MetricsServer;Implementations§
Source§impl MetricsServer
impl MetricsServer
pub async fn run( addr: SocketAddr, metrics: Arc<PrometheusMetrics>, ) -> Result<(), CamelError>
pub async fn run_with_health_source( addr: SocketAddr, metrics: Arc<PrometheusMetrics>, source: Option<Arc<dyn HealthSource>>, ) -> Result<(), CamelError>
pub async fn run_with_listener( listener: TcpListener, metrics: Arc<PrometheusMetrics>, ) -> Result<(), CamelError>
pub async fn run_with_listener_and_health_source( listener: TcpListener, metrics: Arc<PrometheusMetrics>, source: Option<Arc<dyn HealthSource>>, ) -> Result<(), CamelError>
pub async fn run_with_listener_and_health_source_with_shutdown( listener: TcpListener, metrics: Arc<PrometheusMetrics>, source: Option<Arc<dyn HealthSource>>, shutdown: Receiver<()>, ) -> Result<(), CamelError>
Auto Trait Implementations§
impl Freeze for MetricsServer
impl RefUnwindSafe for MetricsServer
impl Send for MetricsServer
impl Sync for MetricsServer
impl Unpin for MetricsServer
impl UnsafeUnpin for MetricsServer
impl UnwindSafe for MetricsServer
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