Facility

Enum Facility 

Source
pub enum Facility {
Show 20 variants Kern = 0, Mail = 16, Daemon = 24, Auth = 32, Syslog = 40, Lpr = 48, News = 56, Uucp = 64, Cron = 72, AuthPriv = 80, Ftp = 88, User = 8, Local0 = 128, Local1 = 136, Local2 = 144, Local3 = 152, Local4 = 160, Local5 = 168, Local6 = 176, Local7 = 184,
}
Expand description

Typesafe representation of syslog facility constants.

Variants§

§

Kern = 0

LOG_KERN
Kernel messages. Not to sent from userland processes.

§

Mail = 16

LOG_MAIL
Email system.

§

Daemon = 24

LOG_DAEMON
Daemons.

§

Auth = 32

LOG_AUTH
Authentication.

§

Syslog = 40

LOG_SYSLOG
Internal messages from syslog. Not to be sent from other processes.

§

Lpr = 48

LOG_LPR
Printing.

§

News = 56

LOG_NEWS
Usenet.

§

Uucp = 64

LOG_UUCP
Unix to unix copy

§

Cron = 72

LOG_CRON
Scheduled jobs (at and cron).

§

AuthPriv = 80

LOG_AUTHPRIV
Authentication, sensitive data.

§

Ftp = 88

LOG_FTP
File transfer protocol system.

§

User = 8

LOG_USER
Default facility.

§

Local0 = 128

LOG_LOCAL0
Site specific facility 0.

§

Local1 = 136

LOG_LOCAL1
Site specific facility 1.

§

Local2 = 144

LOG_LOCAL2
Site specific facility 2.

§

Local3 = 152

LOG_LOCAL3
Site specific facility 3.

§

Local4 = 160

LOG_LOCAL4
Site specific facility 4.

§

Local5 = 168

LOG_LOCAL5
Site specific facility 5.

§

Local6 = 176

LOG_LOCAL6
Site specific facility 6.

§

Local7 = 184

LOG_LOCAL7
Site specific facility 7.

Trait Implementations§

Source§

impl Debug for Facility

Source§

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

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

impl Default 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> 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, 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.