Enum syslog_rfc3164::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

Methods

impl SyslogSeverity
[src]

[src]

Convert an int (as used in the wire serialization) into a SyslogSeverity

Returns an Option, but the wire protocol will only include 0..7, so should never return None in practical usage.

[src]

Convert a syslog severity into a unique string representation

Trait Implementations

impl Copy for SyslogSeverity
[src]

impl Clone for SyslogSeverity
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SyslogSeverity
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for SyslogSeverity
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Serialize for SyslogSeverity
[src]

[src]

Serialize this value into the given Serde serializer. Read more