pub fn from(wire: i32) -> Option<Rfc3164Facility>
	{
		match wire
		{
			0 => Some(Rfc3164Facility::kern),
			1 => Some(Rfc3164Facility::user),
			2 => Some(Rfc3164Facility::mail),
			3 => Some(Rfc3164Facility::daemon),
			4 => Some(Rfc3164Facility::auth),
			5 => Some(Rfc3164Facility::syslog2),
			6 => Some(Rfc3164Facility::lpr),
			7 => Some(Rfc3164Facility::news),
			8 => Some(Rfc3164Facility::uucp),
			9 => Some(Rfc3164Facility::clock),
			10 => Some(Rfc3164Facility::authpriv),
			11 => Some(Rfc3164Facility::ftp),
			12 => None,
			13 => None,
			14 => None,
			15 => None, // Solaris cron, Mac OS X RAS
			16 => Some(Rfc3164Facility::local0),
			17 => Some(Rfc3164Facility::local1),
			18 => Some(Rfc3164Facility::local2),
			19 => Some(Rfc3164Facility::local3),
			20 => Some(Rfc3164Facility::local4),
			21 => Some(Rfc3164Facility::local5),
			22 => Some(Rfc3164Facility::local6),
			23 => Some(Rfc3164Facility::local7),
			24 => None, // Mac OS X LAUNCHD
			_ => None,
		}
	}
/// Use of numbers 12 - 15 inclusive or above 23 is not cross-platform compatible and should, regardless of RFC 3164, be considered private use; we return None
/// Some of these have been used for security messages, so anything returning None should be used or categorised as 'secret'.
Use of numbers 12 - 15 inclusive or above 23 is not cross-platform compatible and should, regardless of RFC 3164, be considered private use; we return None
Some of these have been used for security messages, so anything returning None should be used or categorised as 'secret'.
Use of numbers 12 - 15 inclusive or above 23 is not cross - platform compatible and should regardless of RFC 3164 be considered private use ; we return None Some of these have been used for security messages so anything returning None should be used or categorised as ' secret ' .
pub fn from(wire: i32) -> Option<Rfc3164Facility>
	{
		match wire
		{
			0 => Some(Rfc3164Facility::kern),
			1 => Some(Rfc3164Facility::user),
			2 => Some(Rfc3164Facility::mail),
			3 => Some(Rfc3164Facility::daemon),
			4 => Some(Rfc3164Facility::auth),
			5 => Some(Rfc3164Facility::syslog2),
			6 => Some(Rfc3164Facility::lpr),
			7 => Some(Rfc3164Facility::news),
			8 => Some(Rfc3164Facility::uucp),
			9 => Some(Rfc3164Facility::clock),
			10 => Some(Rfc3164Facility::authpriv),
			11 => Some(Rfc3164Facility::ftp),
			12 => None,
			13 => None,
			14 => None,
			15 => None, // Solaris cron, Mac OS X RAS
			16 => Some(Rfc3164Facility::local0),
			17 => Some(Rfc3164Facility::local1),
			18 => Some(Rfc3164Facility::local2),
			19 => Some(Rfc3164Facility::local3),
			20 => Some(Rfc3164Facility::local4),
			21 => Some(Rfc3164Facility::local5),
			22 => Some(Rfc3164Facility::local6),
			23 => Some(Rfc3164Facility::local7),
			24 => None, // Mac OS X LAUNCHD
			_ => None,
		}
	}
pub fn from ( wire : i32 ) -> Option < Rfc3164Facility > { match wire { 0 => Some ( Rfc3164Facility :: kern ) , 1 => Some ( Rfc3164Facility :: user ) , 2 => Some ( Rfc3164Facility :: mail ) , 3 => Some ( Rfc3164Facility :: daemon ) , 4 => Some ( Rfc3164Facility :: auth ) , 5 => Some ( Rfc3164Facility :: syslog2 ) , 6 => Some ( Rfc3164Facility :: lpr ) , 7 => Some ( Rfc3164Facility :: news ) , 8 => Some ( Rfc3164Facility :: uucp ) , 9 => Some ( Rfc3164Facility :: clock ) , 10 => Some ( Rfc3164Facility :: authpriv ) , 11 => Some ( Rfc3164Facility :: ftp ) , 12 => None , 13 => None , 14 => None , 15 => None , // Solaris cron, Mac OS X RAS 16 => Some ( Rfc3164Facility :: local0 ) , 17 => Some ( Rfc3164Facility :: local1 ) , 18 => Some ( Rfc3164Facility :: local2 ) , 19 => Some ( Rfc3164Facility :: local3 ) , 20 => Some ( Rfc3164Facility :: local4 ) , 21 => Some ( Rfc3164Facility :: local5 ) , 22 => Some ( Rfc3164Facility :: local6 ) , 23 => Some ( Rfc3164Facility :: local7 ) , 24 => None , // Mac OS X LAUNCHD _ => None , } }
Use of numbers 12 - 15 inclusive or above 23 is not cross-platform compatible and should, regardless of RFC 3164, be considered private use; we return None
Some of these have been used for security messages, so anything returning None should be used or categorised as 'secret'.
Use of numbers 12 - 15 inclusive or above 23 is not cross - platform compatible and should regardless of RFC 3164 be considered private use ; we return None Some of these have been used for security messages so anything returning None should be used or categorised as ' secret ' .
wire
i32
wire
i32