pub struct MetricsConfig {
pub enabled: bool,
pub port: u16,
pub bind_address: IpAddr,
pub update_interval: Duration,
}
Expand description
Configuration for metrics collection and export
Fields§
§enabled: bool
Whether to enable metrics collection
port: u16
Port for the metrics HTTP server (only used when prometheus feature is enabled)
bind_address: IpAddr
Address to bind the metrics server to
update_interval: Duration
Update interval for metrics collection
Trait Implementations§
Source§impl Clone for MetricsConfig
impl Clone for MetricsConfig
Source§fn clone(&self) -> MetricsConfig
fn clone(&self) -> MetricsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetricsConfig
impl Debug for MetricsConfig
Auto Trait Implementations§
impl Freeze for MetricsConfig
impl RefUnwindSafe for MetricsConfig
impl Send for MetricsConfig
impl Sync for MetricsConfig
impl Unpin for MetricsConfig
impl UnwindSafe for MetricsConfig
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