Struct iroh_dns_server::config::MetricsConfig
source · pub struct MetricsConfig {
pub disabled: bool,
pub bind_addr: Option<SocketAddr>,
}
Expand description
The config for the metrics server.
Fields§
§disabled: bool
Set to true to disable the metrics server.
bind_addr: Option<SocketAddr>
Optionally set a custom address to bind to.
Implementations§
source§impl MetricsConfig
impl MetricsConfig
Trait Implementations§
source§impl Debug for MetricsConfig
impl Debug for MetricsConfig
source§impl<'de> Deserialize<'de> for MetricsConfig
impl<'de> Deserialize<'de> for MetricsConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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