Enum collectd_plugin::ConfigValue
[−]
[src]
pub enum ConfigValue<'a> {
Number(f64),
Boolean(bool),
String(&'a str),
}A parsed value from the Collectd config
Variants
Number(f64)Numeric value
Boolean(bool)True / false, on / off
String(&'a str)Contents enclosed in quote
Methods
impl<'a> ConfigValue<'a>[src]
pub unsafe fn from(value: &oconfig_value_t) -> Result<ConfigValue, Error>[src]
Trait Implementations
impl<'a> Debug for ConfigValue<'a>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<'a> PartialEq for ConfigValue<'a>[src]
fn eq(&self, __arg_0: &ConfigValue<'a>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConfigValue<'a>) -> bool[src]
This method tests for !=.
impl<'a> Clone for ConfigValue<'a>[src]
fn clone(&self) -> ConfigValue<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more