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§