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.