Struct 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: Write>(
&self,
writer: &mut W,
message: &impl Rfc5424Data
) -> Result<()>
[src]
pub fn format<W: Write>(
&self,
writer: &mut W,
message: &impl Rfc5424Data
) -> Result<()>
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
)
Trait Implementations
impl Debug for Rfc5424
[src]
impl Debug for Rfc5424
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Rfc5424
[src]
impl Default for Rfc5424