pub trait DisableConfig {
// Required methods
fn is_enabled(&self, module: Module) -> bool;
fn list_of_enabled(&self) -> Vec<Module>;
}
Expand description
Configuration for disabling metrics.
Required Methods§
sourcefn is_enabled(&self, module: Module) -> bool
fn is_enabled(&self, module: Module) -> bool
Returns true
if the given module is enabled.
sourcefn list_of_enabled(&self) -> Vec<Module>
fn list_of_enabled(&self) -> Vec<Module>
Returns the list of enabled modules.