pub struct MetricSourceConfig<T> {
pub inner: T,
pub ignore_on_failure: bool,
}Expand description
Metric source configuration wrapper.
Fields§
§inner: TThe source configuration, deserialized from a TOML table.
ignore_on_failure: boolWhen true, a failure to initialize this source is logged as a warning and silently skipped rather than propagating an error.
Trait Implementations§
Source§impl<T: Debug> Debug for MetricSourceConfig<T>
impl<T: Debug> Debug for MetricSourceConfig<T>
Source§impl<T: Default> Default for MetricSourceConfig<T>
impl<T: Default> Default for MetricSourceConfig<T>
Source§fn default() -> MetricSourceConfig<T>
fn default() -> MetricSourceConfig<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for MetricSourceConfig<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for MetricSourceConfig<T>where
T: Deserialize<'de>,
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<T> Freeze for MetricSourceConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for MetricSourceConfig<T>where
T: RefUnwindSafe,
impl<T> Send for MetricSourceConfig<T>where
T: Send,
impl<T> Sync for MetricSourceConfig<T>where
T: Sync,
impl<T> Unpin for MetricSourceConfig<T>where
T: Unpin,
impl<T> UnsafeUnpin for MetricSourceConfig<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MetricSourceConfig<T>where
T: UnwindSafe,
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