Facility

Enum Facility 

Source
pub enum Facility {
Show 24 variants KERN = 0, USER = 8, MAIL = 16, DAEMON = 24, AUTH = 32, SYSLOG = 40, LPR = 48, NEWS = 56, UUCP = 64, CRON = 72, AUTHPRIV = 80, FTP = 88, NTP = 96, LOGAU = 104, LOGALT = 112, CRON2 = 120, LOCAL0 = 128, LOCAL1 = 136, LOCAL2 = 144, LOCAL3 = 152, LOCAL4 = 160, LOCAL5 = 168, LOCAL6 = 176, LOCAL7 = 184,
}
Expand description

Facilities according to RFC 5424

Variants§

§

KERN = 0

Kernel messages

§

USER = 8

User-level messages

§

MAIL = 16

Mail system

§

DAEMON = 24

System daemons

§

AUTH = 32

Security/authorization messages

§

SYSLOG = 40

Messages generated internally by syslogd

§

LPR = 48

Line printer subsystem

§

NEWS = 56

Network news subsystem

§

UUCP = 64

UUCP subsystem

§

CRON = 72

Clock daemon

§

AUTHPRIV = 80

Security/authorization messages

§

FTP = 88

FTP daemon

§

NTP = 96

NTP subsystem

§

LOGAU = 104

Log audit

§

LOGALT = 112

Log alert

§

CRON2 = 120

Clock daemon (note 2)

§

LOCAL0 = 128

Local use 0 (local0)

§

LOCAL1 = 136

Local use 1 (local1)

§

LOCAL2 = 144

Local use 2 (local2)

§

LOCAL3 = 152

Local use 3 (local3)

§

LOCAL4 = 160

Local use 4 (local4)

§

LOCAL5 = 168

Local use 5 (local5)

§

LOCAL6 = 176

Local use 6 (local6)

§

LOCAL7 = 184

Local use 7 (local7)

Trait Implementations§

Source§

impl Clone for Facility

Source§

fn clone(&self) -> Facility

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Facility

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Facility

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.