Enum collectd_plugin::LogLevel [−][src]
#[repr(u32)]pub enum LogLevel { Error, Warning, Notice, Info, Debug, }
The available levels that collectd exposes to log messages.
Variants
ErrorWarningNoticeInfoDebug
Methods
impl LogLevel[src]
impl LogLevelpub fn try_from(s: u32) -> Option<LogLevel>[src]
pub fn try_from(s: u32) -> Option<LogLevel>Attempts to convert a u32 representing a collectd logging level into a Rust enum
Trait Implementations
impl<'de> Deserialize<'de> for LogLevel[src]
impl<'de> Deserialize<'de> for LogLevelfn deserialize<D>(deserializer: D) -> Result<LogLevel, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<LogLevel, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Debug for LogLevel[src]
impl Debug for LogLevelfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for LogLevel[src]
impl PartialEq for LogLevelfn eq(&self, other: &LogLevel) -> bool[src]
fn eq(&self, other: &LogLevel) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for LogLevel[src]
impl Eq for LogLevelimpl Clone for LogLevel[src]
impl Clone for LogLevelfn clone(&self) -> LogLevel[src]
fn clone(&self) -> LogLevelReturns 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
impl Copy for LogLevel[src]
impl Copy for LogLevel