pub fn toFacilityAccommodatingSolaris(self) -> Option<Facility>
	{
		match self
		{
			Rfc3164Facility::kern => Some(Facility::LOG_KERN),
			Rfc3164Facility::user => Some(Facility::LOG_USER),
			Rfc3164Facility::mail => Some(Facility::LOG_MAIL),
			Rfc3164Facility::daemon => Some(Facility::LOG_DAEMON),
			Rfc3164Facility::auth => Some(Facility::LOG_AUTH),
			Rfc3164Facility::syslog2 => Some(Facility::LOG_SYSLOG),
			Rfc3164Facility::lpr => Some(Facility::LOG_LPR),
			Rfc3164Facility::news => Some(Facility::LOG_NEWS),
			Rfc3164Facility::uucp => Some(Facility::LOG_UUCP),
			Rfc3164Facility::clock => Some(Facility::LOG_CRON),
			Rfc3164Facility::authpriv => Some(Facility::bestAuthenticationFacilityForPlatform()),
			Rfc3164Facility::ftp =>
			{
				if cfg!(target_os = "solaris")
				{
					None
				}
				else
				{
					Some(Facility::LOG_FTP)
				}
			},
			Rfc3164Facility::local0 => Some(Facility::LOG_LOCAL0),
			Rfc3164Facility::local1 => Some(Facility::LOG_LOCAL1),
			Rfc3164Facility::local2 => Some(Facility::LOG_LOCAL2),
			Rfc3164Facility::local3 => Some(Facility::LOG_LOCAL3),
			Rfc3164Facility::local4 => Some(Facility::LOG_LOCAL4),
			Rfc3164Facility::local5 => Some(Facility::LOG_LOCAL5),
			Rfc3164Facility::local6 => Some(Facility::LOG_LOCAL6),
			Rfc3164Facility::local7 => Some(Facility::LOG_LOCAL7),
		}
	}
/// All succeed apart from Rfc3164Facility::ftp, for which there is no mapping on Solaris
/// ie if your discount Solaris, you can always `unwrap()`
All succeed apart from Rfc3164Facility::ftp, for which there is no mapping on Solaris
ie if your discount Solaris, you can always `unwrap()`
All succeed apart from Rfc3164Facility :: ftp for which there is no mapping on Solaris ie if your discount Solaris you can always ` unwrap () `
pub fn toFacilityAccommodatingSolaris(self) -> Option<Facility>
	{
		match self
		{
			Rfc3164Facility::kern => Some(Facility::LOG_KERN),
			Rfc3164Facility::user => Some(Facility::LOG_USER),
			Rfc3164Facility::mail => Some(Facility::LOG_MAIL),
			Rfc3164Facility::daemon => Some(Facility::LOG_DAEMON),
			Rfc3164Facility::auth => Some(Facility::LOG_AUTH),
			Rfc3164Facility::syslog2 => Some(Facility::LOG_SYSLOG),
			Rfc3164Facility::lpr => Some(Facility::LOG_LPR),
			Rfc3164Facility::news => Some(Facility::LOG_NEWS),
			Rfc3164Facility::uucp => Some(Facility::LOG_UUCP),
			Rfc3164Facility::clock => Some(Facility::LOG_CRON),
			Rfc3164Facility::authpriv => Some(Facility::bestAuthenticationFacilityForPlatform()),
			Rfc3164Facility::ftp =>
			{
				if cfg!(target_os = "solaris")
				{
					None
				}
				else
				{
					Some(Facility::LOG_FTP)
				}
			},
			Rfc3164Facility::local0 => Some(Facility::LOG_LOCAL0),
			Rfc3164Facility::local1 => Some(Facility::LOG_LOCAL1),
			Rfc3164Facility::local2 => Some(Facility::LOG_LOCAL2),
			Rfc3164Facility::local3 => Some(Facility::LOG_LOCAL3),
			Rfc3164Facility::local4 => Some(Facility::LOG_LOCAL4),
			Rfc3164Facility::local5 => Some(Facility::LOG_LOCAL5),
			Rfc3164Facility::local6 => Some(Facility::LOG_LOCAL6),
			Rfc3164Facility::local7 => Some(Facility::LOG_LOCAL7),
		}
	}
pub fn toFacilityAccommodatingSolaris ( self ) -> Option < Facility > { match self { Rfc3164Facility :: kern => Some ( Facility :: LOG_KERN ) , Rfc3164Facility :: user => Some ( Facility :: LOG_USER ) , Rfc3164Facility :: mail => Some ( Facility :: LOG_MAIL ) , Rfc3164Facility :: daemon => Some ( Facility :: LOG_DAEMON ) , Rfc3164Facility :: auth => Some ( Facility :: LOG_AUTH ) , Rfc3164Facility :: syslog2 => Some ( Facility :: LOG_SYSLOG ) , Rfc3164Facility :: lpr => Some ( Facility :: LOG_LPR ) , Rfc3164Facility :: news => Some ( Facility :: LOG_NEWS ) , Rfc3164Facility :: uucp => Some ( Facility :: LOG_UUCP ) , Rfc3164Facility :: clock => Some ( Facility :: LOG_CRON ) , Rfc3164Facility :: authpriv => Some ( Facility :: bestAuthenticationFacilityForPlatform ( ) ) , Rfc3164Facility :: ftp => { if cfg ! ( target_os " " ) { None } else { Some ( Facility :: LOG_FTP ) } } , Rfc3164Facility :: local0 => Some ( Facility :: LOG_LOCAL0 ) , Rfc3164Facility :: local1 => Some ( Facility :: LOG_LOCAL1 ) , Rfc3164Facility :: local2 => Some ( Facility :: LOG_LOCAL2 ) , Rfc3164Facility :: local3 => Some ( Facility :: LOG_LOCAL3 ) , Rfc3164Facility :: local4 => Some ( Facility :: LOG_LOCAL4 ) , Rfc3164Facility :: local5 => Some ( Facility :: LOG_LOCAL5 ) , Rfc3164Facility :: local6 => Some ( Facility :: LOG_LOCAL6 ) , Rfc3164Facility :: local7 => Some ( Facility :: LOG_LOCAL7 ) , } }
All succeed apart from Rfc3164Facility::ftp, for which there is no mapping on Solaris
ie if your discount Solaris, you can always `unwrap()`
All succeed apart from Rfc3164Facility :: ftp for which there is no mapping on Solaris ie if your discount Solaris you can always ` unwrap () `
self
self