Enum collectd_plugin::ConfigValue [−][src]
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]
impl<'a> ConfigValue<'a>pub unsafe fn from(value: &oconfig_value_t) -> Result<ConfigValue, Error>[src]
pub unsafe fn from(value: &oconfig_value_t) -> Result<ConfigValue, Error>Trait Implementations
impl<'a> Debug for ConfigValue<'a>[src]
impl<'a> Debug for ConfigValue<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> PartialEq for ConfigValue<'a>[src]
impl<'a> PartialEq for ConfigValue<'a>fn eq(&self, other: &ConfigValue<'a>) -> bool[src]
fn eq(&self, other: &ConfigValue<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ConfigValue<'a>) -> bool[src]
fn ne(&self, other: &ConfigValue<'a>) -> boolThis method tests for !=.
impl<'a> Clone for ConfigValue<'a>[src]
impl<'a> Clone for ConfigValue<'a>fn clone(&self) -> ConfigValue<'a>[src]
fn clone(&self) -> ConfigValue<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'a> Send for ConfigValue<'a>
impl<'a> Send for ConfigValue<'a>impl<'a> Sync for ConfigValue<'a>
impl<'a> Sync for ConfigValue<'a>