pub struct FormatRfc5424 { /* private fields */ }
Expand description
Implementations§
Source§impl FormatRfc5424
impl FormatRfc5424
Sourcepub fn add_msg_id_str(&mut self, msg_id: &'static str) -> SyRes<()>
pub fn add_msg_id_str(&mut self, msg_id: &'static str) -> SyRes<()>
Adds the MSGID which identifies the type of the message. Make sure that it does not contain any non ASCII characters or non-printable chars. Normally it should consist from letters and digits.
Sourcepub fn add_msg_id(&mut self, msg_id: impl Into<String>) -> SyRes<()>
pub fn add_msg_id(&mut self, msg_id: impl Into<String>) -> SyRes<()>
Adds the MSGID which identifies the type of the message. Make sure that it does not contain any non ASCII characters or non-printable chars. Normally it should consist from letters and digits.
Sourcepub fn add_st_data(&mut self, st_data: FormatRfc5424Sd) -> SyRes<()>
pub fn add_st_data(&mut self, st_data: FormatRfc5424Sd) -> SyRes<()>
Inserts the instance of the FormatRfc5424Sd to the list. This is a user defined formatted message.
Trait Implementations§
Source§impl Clone for FormatRfc5424
impl Clone for FormatRfc5424
Source§fn clone(&self) -> FormatRfc5424
fn clone(&self) -> FormatRfc5424
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FormatRfc5424
impl Debug for FormatRfc5424
Source§impl From<&'static str> for FormatRfc5424
impl From<&'static str> for FormatRfc5424
Source§fn from(value: &'static str) -> FormatRfc5424
fn from(value: &'static str) -> FormatRfc5424
Converts to this type from the input type.
Source§impl From<String> for FormatRfc5424
impl From<String> for FormatRfc5424
Source§fn from(value: String) -> FormatRfc5424
fn from(value: String) -> FormatRfc5424
Converts to this type from the input type.
Source§impl SyslogFormatter for FormatRfc5424
impl SyslogFormatter for FormatRfc5424
Source§fn vsyslog1_format<'f>(
_tap_type: TapType,
max_msg_size: usize,
pri: Priority,
progname: &'f str,
pid: &'f str,
fmt: &'f Self,
) -> SyslogFormatted<'f>
fn vsyslog1_format<'f>( _tap_type: TapType, max_msg_size: usize, pri: Priority, progname: &'f str, pid: &'f str, fmt: &'f Self, ) -> SyslogFormatted<'f>
Formats the message for the syslog server with specific protocol or
RFC. Read more
impl Send for FormatRfc5424
Auto Trait Implementations§
impl Freeze for FormatRfc5424
impl RefUnwindSafe for FormatRfc5424
impl Sync for FormatRfc5424
impl Unpin for FormatRfc5424
impl UnwindSafe for FormatRfc5424
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more