fuel_core_metrics::config

Trait DisableConfig

source
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§

source

fn is_enabled(&self, module: Module) -> bool

Returns true if the given module is enabled.

source

fn list_of_enabled(&self) -> Vec<Module>

Returns the list of enabled modules.

Implementations on Foreign Types§

source§

impl DisableConfig for Vec<Module>

source§

fn is_enabled(&self, module: Module) -> bool

source§

fn list_of_enabled(&self) -> Vec<Module>

Implementors§