Enum syslog_rfc5424::SyslogSeverity
[−]
[src]
pub enum SyslogSeverity { SEV_EMERG, SEV_ALERT, SEV_CRIT, SEV_ERR, SEV_WARNING, SEV_NOTICE, SEV_INFO, SEV_DEBUG, }
Syslog Severities from RFC 5424.
Variants
SEV_EMERG
SEV_ALERT
SEV_CRIT
SEV_ERR
SEV_WARNING
SEV_NOTICE
SEV_INFO
SEV_DEBUG
Methods
impl SyslogSeverity
[src]
fn from_int(i: i32) -> Option<SyslogSeverity>
Convert an int (as used in the wire serialization) into a SyslogFacility
Returns an Option, but the wire protocol will only include 0..7, so should never return None in practical usage.
Trait Implementations
impl PartialEq for SyslogSeverity
[src]
fn eq(&self, __arg_0: &SyslogSeverity) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Debug for SyslogSeverity
[src]
impl Clone for SyslogSeverity
[src]
fn clone(&self) -> SyslogSeverity
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more