Trait syslog_tls::LogFormat

source ·
pub trait LogFormat<T> {
    // Required method
    fn format_at<W: Write>(
        &self,
        w: &mut W,
        severity: Severity,
        time: OffsetDateTime,
        message: &T
    ) -> Result<()>;

    // Provided methods
    fn format<W: Write>(
        &self,
        w: &mut W,
        severity: Severity,
        message: &T
    ) -> Result<()> { ... }
    fn emerg<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()> { ... }
    fn alert<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()> { ... }
    fn crit<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()> { ... }
    fn err<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()> { ... }
    fn warning<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()> { ... }
    fn notice<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()> { ... }
    fn info<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()> { ... }
    fn debug<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()> { ... }
}

Required Methods§

source

fn format_at<W: Write>( &self, w: &mut W, severity: Severity, time: OffsetDateTime, message: &T ) -> Result<()>

Provided Methods§

source

fn format<W: Write>( &self, w: &mut W, severity: Severity, message: &T ) -> Result<()>

source

fn emerg<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()>

source

fn alert<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()>

source

fn crit<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()>

source

fn err<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()>

source

fn warning<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()>

source

fn notice<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()>

source

fn info<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()>

source

fn debug<W: Write>(&mut self, w: &mut W, message: &T) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§