pub fn toRfc3164Facility(self) -> Rfc3164Facility
	{
		match self
		{
			Facility::LOG_KERN => Rfc3164Facility::kern,
			Facility::LOG_USER => Rfc3164Facility::user,
			Facility::LOG_MAIL => Rfc3164Facility::mail,
			Facility::LOG_DAEMON => Rfc3164Facility::daemon,
			Facility::LOG_AUTH => Rfc3164Facility::auth,
			Facility::LOG_SYSLOG => Rfc3164Facility::syslog2,
			Facility::LOG_LPR => Rfc3164Facility::lpr,
			Facility::LOG_NEWS => Rfc3164Facility::news,
			Facility::LOG_UUCP => Rfc3164Facility::news,
			Facility::LOG_CRON => Rfc3164Facility::clock,
			#[cfg(not(target_os = "solaris"))] Facility::LOG_AUTHPRIV => Rfc3164Facility::authpriv,
			#[cfg(not(target_os = "solaris"))] Facility::LOG_FTP => Rfc3164Facility::ftp,
			#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] Facility::LOG_NTP => Rfc3164Facility::daemon,
			#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] Facility::LOG_SECURITY => Rfc3164Facility::authpriv,
			#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] Facility::LOG_CONSOLE => Rfc3164Facility::authpriv,
			#[cfg(target_os = "macos")] Facility::LOG_NETINFO => Rfc3164Facility::daemon,
			#[cfg(target_os = "macos")] Facility::LOG_REMOTEAUTH => Rfc3164Facility::authpriv,
			#[cfg(target_os = "macos")] Facility::LOG_INSTALL => Rfc3164Facility::authpriv,
			#[cfg(target_os = "macos")] Facility::LOG_RAS => Rfc3164Facility::authpriv,
			Facility::LOG_LOCAL0 => Rfc3164Facility::local0,
			Facility::LOG_LOCAL1 => Rfc3164Facility::local1,
			Facility::LOG_LOCAL2 => Rfc3164Facility::local2,
			Facility::LOG_LOCAL3 => Rfc3164Facility::local3,
			Facility::LOG_LOCAL4 => Rfc3164Facility::local4,
			Facility::LOG_LOCAL5 => Rfc3164Facility::local5,
			Facility::LOG_LOCAL6 => Rfc3164Facility::local6,
			Facility::LOG_LOCAL7 => Rfc3164Facility::local7,
			#[cfg(target_os = "macos")] Facility::LOG_LAUNCHD => Rfc3164Facility::daemon,
		}
	}
/// Will not match 1:1, as we will not (ab)use effectively private use RFC 3164 facility codes (12 - 15 inclusive and greater than 23)
/// Solaris cron is mapped to clock (11), not cron (15), for maximum compatibility
/// FreeBSD and DragonFlyBSD LOG_SECURITY and LOG_CONSOLE are mapped to authpriv, for maximum compatibility and secure handling
/// FreeBSD and DragonFlyBSD LOG_NTP is mapped to daemon
/// Mac OS X LOG_NETINFO is mapped to daemon
/// Mac OS X LOG_REMOTEAUTH is mapped to authpriv
/// Mac OS X LOG_INSTALL and LOG_RAS are mapped to authpriv (as they would seem to leak private or privleged information)
/// Mac OS X LOG_LAUNCHD is mapped to daemon
Will not match 1:1, as we will not (ab)use effectively private use RFC 3164 facility codes (12 - 15 inclusive and greater than 23)
Solaris cron is mapped to clock (11), not cron (15), for maximum compatibility
FreeBSD and DragonFlyBSD LOG_SECURITY and LOG_CONSOLE are mapped to authpriv, for maximum compatibility and secure handling
FreeBSD and DragonFlyBSD LOG_NTP is mapped to daemon
Mac OS X LOG_NETINFO is mapped to daemon
Mac OS X LOG_REMOTEAUTH is mapped to authpriv
Mac OS X LOG_INSTALL and LOG_RAS are mapped to authpriv (as they would seem to leak private or privleged information)
Mac OS X LOG_LAUNCHD is mapped to daemon
Will not match 1 : 1 as we will not ( ab ) use effectively private use RFC 3164 facility codes ( 12 - 15 inclusive and greater than 23 ) Solaris cron is mapped to clock ( 11 ) not cron ( 15 ) for maximum compatibility FreeBSD and DragonFlyBSD LOG_SECURITY and LOG_CONSOLE are mapped to authpriv for maximum compatibility and secure handling FreeBSD and DragonFlyBSD LOG_NTP is mapped to daemon Mac OS X LOG_NETINFO is mapped to daemon Mac OS X LOG_REMOTEAUTH is mapped to authpriv Mac OS X LOG_INSTALL and LOG_RAS are mapped to authpriv ( as they would seem to leak private or privleged information ) Mac OS X LOG_LAUNCHD is mapped to daemon
pub fn toRfc3164Facility(self) -> Rfc3164Facility
	{
		match self
		{
			Facility::LOG_KERN => Rfc3164Facility::kern,
			Facility::LOG_USER => Rfc3164Facility::user,
			Facility::LOG_MAIL => Rfc3164Facility::mail,
			Facility::LOG_DAEMON => Rfc3164Facility::daemon,
			Facility::LOG_AUTH => Rfc3164Facility::auth,
			Facility::LOG_SYSLOG => Rfc3164Facility::syslog2,
			Facility::LOG_LPR => Rfc3164Facility::lpr,
			Facility::LOG_NEWS => Rfc3164Facility::news,
			Facility::LOG_UUCP => Rfc3164Facility::news,
			Facility::LOG_CRON => Rfc3164Facility::clock,
			#[cfg(not(target_os = "solaris"))] Facility::LOG_AUTHPRIV => Rfc3164Facility::authpriv,
			#[cfg(not(target_os = "solaris"))] Facility::LOG_FTP => Rfc3164Facility::ftp,
			#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] Facility::LOG_NTP => Rfc3164Facility::daemon,
			#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] Facility::LOG_SECURITY => Rfc3164Facility::authpriv,
			#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] Facility::LOG_CONSOLE => Rfc3164Facility::authpriv,
			#[cfg(target_os = "macos")] Facility::LOG_NETINFO => Rfc3164Facility::daemon,
			#[cfg(target_os = "macos")] Facility::LOG_REMOTEAUTH => Rfc3164Facility::authpriv,
			#[cfg(target_os = "macos")] Facility::LOG_INSTALL => Rfc3164Facility::authpriv,
			#[cfg(target_os = "macos")] Facility::LOG_RAS => Rfc3164Facility::authpriv,
			Facility::LOG_LOCAL0 => Rfc3164Facility::local0,
			Facility::LOG_LOCAL1 => Rfc3164Facility::local1,
			Facility::LOG_LOCAL2 => Rfc3164Facility::local2,
			Facility::LOG_LOCAL3 => Rfc3164Facility::local3,
			Facility::LOG_LOCAL4 => Rfc3164Facility::local4,
			Facility::LOG_LOCAL5 => Rfc3164Facility::local5,
			Facility::LOG_LOCAL6 => Rfc3164Facility::local6,
			Facility::LOG_LOCAL7 => Rfc3164Facility::local7,
			#[cfg(target_os = "macos")] Facility::LOG_LAUNCHD => Rfc3164Facility::daemon,
		}
	}
pub fn toRfc3164Facility ( self ) -> Rfc3164Facility { match self { Facility :: LOG_KERN => Rfc3164Facility :: kern , Facility :: LOG_USER => Rfc3164Facility :: user , Facility :: LOG_MAIL => Rfc3164Facility :: mail , Facility :: LOG_DAEMON => Rfc3164Facility :: daemon , Facility :: LOG_AUTH => Rfc3164Facility :: auth , Facility :: LOG_SYSLOG => Rfc3164Facility :: syslog2 , Facility :: LOG_LPR => Rfc3164Facility :: lpr , Facility :: LOG_NEWS => Rfc3164Facility :: news , Facility :: LOG_UUCP => Rfc3164Facility :: news , Facility :: LOG_CRON => Rfc3164Facility :: clock , # [ cfg ( not ( target_os " " ) ) ] Facility :: LOG_AUTHPRIV => Rfc3164Facility :: authpriv , # [ cfg ( not ( target_os " " ) ) ] Facility :: LOG_FTP => Rfc3164Facility :: ftp , # [ cfg ( any ( target_os " " target_os " " ) ) ] Facility :: LOG_NTP => Rfc3164Facility :: daemon , # [ cfg ( any ( target_os " " target_os " " ) ) ] Facility :: LOG_SECURITY => Rfc3164Facility :: authpriv , # [ cfg ( any ( target_os " " target_os " " ) ) ] Facility :: LOG_CONSOLE => Rfc3164Facility :: authpriv , # [ cfg ( target_os " " ) ] Facility :: LOG_NETINFO => Rfc3164Facility :: daemon , # [ cfg ( target_os " " ) ] Facility :: LOG_REMOTEAUTH => Rfc3164Facility :: authpriv , # [ cfg ( target_os " " ) ] Facility :: LOG_INSTALL => Rfc3164Facility :: authpriv , # [ cfg ( target_os " " ) ] Facility :: LOG_RAS => Rfc3164Facility :: authpriv , Facility :: LOG_LOCAL0 => Rfc3164Facility :: local0 , Facility :: LOG_LOCAL1 => Rfc3164Facility :: local1 , Facility :: LOG_LOCAL2 => Rfc3164Facility :: local2 , Facility :: LOG_LOCAL3 => Rfc3164Facility :: local3 , Facility :: LOG_LOCAL4 => Rfc3164Facility :: local4 , Facility :: LOG_LOCAL5 => Rfc3164Facility :: local5 , Facility :: LOG_LOCAL6 => Rfc3164Facility :: local6 , Facility :: LOG_LOCAL7 => Rfc3164Facility :: local7 , # [ cfg ( target_os " " ) ] Facility :: LOG_LAUNCHD => Rfc3164Facility :: daemon , } }
Will not match 1:1, as we will not (ab)use effectively private use RFC 3164 facility codes (12 - 15 inclusive and greater than 23)
Solaris cron is mapped to clock (11), not cron (15), for maximum compatibility
FreeBSD and DragonFlyBSD LOG_SECURITY and LOG_CONSOLE are mapped to authpriv, for maximum compatibility and secure handling
FreeBSD and DragonFlyBSD LOG_NTP is mapped to daemon
Mac OS X LOG_NETINFO is mapped to daemon
Mac OS X LOG_REMOTEAUTH is mapped to authpriv
Mac OS X LOG_INSTALL and LOG_RAS are mapped to authpriv (as they would seem to leak private or privleged information)
Mac OS X LOG_LAUNCHD is mapped to daemon
Will not match 1 : 1 as we will not ( ab ) use effectively private use RFC 3164 facility codes ( 12 - 15 inclusive and greater than 23 ) Solaris cron is mapped to clock ( 11 ) not cron ( 15 ) for maximum compatibility FreeBSD and DragonFlyBSD LOG_SECURITY and LOG_CONSOLE are mapped to authpriv for maximum compatibility and secure handling FreeBSD and DragonFlyBSD LOG_NTP is mapped to daemon Mac OS X LOG_NETINFO is mapped to daemon Mac OS X LOG_REMOTEAUTH is mapped to authpriv Mac OS X LOG_INSTALL and LOG_RAS are mapped to authpriv ( as they would seem to leak private or privleged information ) Mac OS X LOG_LAUNCHD is mapped to daemon
self
self