We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 935012f commit ef7319bCopy full SHA for ef7319b
crates/stackable-telemetry/src/tracing/settings/mod.rs
@@ -16,8 +16,12 @@ pub use otlp_log::*;
16
pub mod otlp_trace;
17
pub use otlp_trace::*;
18
19
+/// Indicate whether a type is enabled or disabled.
20
pub trait SettingsToggle {
21
+ /// Whether the settings are enabled or not.
22
fn is_enabled(&self) -> bool;
23
+
24
+ /// The opposite of [SettingsToggle::is_enabled] as a helper.
25
fn is_disabled(&self) -> bool {
26
!self.is_enabled()
27
}
0 commit comments