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_EMERGSEV_ALERTSEV_CRITSEV_ERRSEV_WARNINGSEV_NOTICESEV_INFOSEV_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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl Copy for SyslogSeverity
[src]

impl Encodable for SyslogSeverity
[src]

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>