Struct slog_syslog5424::Rfc5424 [−][src]
pub struct Rfc5424 { /* fields omitted */ }
Holds the metadata needed for formatting a RFC5424 syslog message.
Use Rfc5424Builder
to construct one.
Methods
impl Rfc5424
[src]
impl Rfc5424
pub fn format<W, impl Rfc5424Data>(
&self,
writer: &mut W,
message: &impl Rfc5424Data
) -> Result<(), Error> where
W: Write,
impl Rfc5424Data: Rfc5424Data,
[src]
pub fn format<W, impl Rfc5424Data>(
&self,
writer: &mut W,
message: &impl Rfc5424Data
) -> Result<(), Error> where
W: Write,
impl Rfc5424Data: Rfc5424Data,
Format Rfc5424Data
into a RFC5424 message according to the metadata in
self
, and writes it using writer
.
Errors
Errors when writer
returns an error (io::Error
)