pub trait RecordDecorator: Write {
    // Required method
    fn reset(&mut self) -> Result<()>;

    // Provided methods
    fn start_whitespace(&mut self) -> Result<()> { ... }
    fn start_msg(&mut self) -> Result<()> { ... }
    fn start_timestamp(&mut self) -> Result<()> { ... }
    fn start_level(&mut self) -> Result<()> { ... }
    fn start_comma(&mut self) -> Result<()> { ... }
    fn start_key(&mut self) -> Result<()> { ... }
    fn start_value(&mut self) -> Result<()> { ... }
    fn start_location(&mut self) -> Result<()> { ... }
    fn start_separator(&mut self) -> Result<()> { ... }
}
Expand description

Per-record decorator

Required Methods§

source

fn reset(&mut self) -> Result<()>

Reset formatting to defaults

Provided Methods§

source

fn start_whitespace(&mut self) -> Result<()>

Format normal text

source

fn start_msg(&mut self) -> Result<()>

Format Record message

source

fn start_timestamp(&mut self) -> Result<()>

Format timestamp

source

fn start_level(&mut self) -> Result<()>

Format Record level

source

fn start_comma(&mut self) -> Result<()>

Format a comma between key-value pairs

source

fn start_key(&mut self) -> Result<()>

Format key

source

fn start_value(&mut self) -> Result<()>

Format a value

source

fn start_location(&mut self) -> Result<()>

Format a file location

source

fn start_separator(&mut self) -> Result<()>

Format value

Trait Implementations§

source§

impl RecordDecorator for Box<dyn RecordDecorator>

source§

fn start_msg(&mut self) -> Result<()>

Format Record message

source§

fn start_timestamp(&mut self) -> Result<()>

Format timestamp

source§

fn start_level(&mut self) -> Result<()>

Format Record level

source§

fn start_comma(&mut self) -> Result<()>

Format Record message

source§

fn start_key(&mut self) -> Result<()>

Format key

source§

fn start_value(&mut self) -> Result<()>

Format value

source§

fn start_location(&mut self) -> Result<()>

Format file location

source§

fn start_separator(&mut self) -> Result<()>

Format value

source§

fn reset(&mut self) -> Result<()>

Reset formatting to defaults
source§

fn start_whitespace(&mut self) -> Result<()>

Format normal text

Implementations on Foreign Types§

source§

impl RecordDecorator for Box<dyn RecordDecorator>

source§

fn start_msg(&mut self) -> Result<()>

Format Record message

source§

fn start_timestamp(&mut self) -> Result<()>

Format timestamp

source§

fn start_level(&mut self) -> Result<()>

Format Record level

source§

fn start_comma(&mut self) -> Result<()>

Format Record message

source§

fn start_key(&mut self) -> Result<()>

Format key

source§

fn start_value(&mut self) -> Result<()>

Format value

source§

fn start_location(&mut self) -> Result<()>

Format file location

source§

fn start_separator(&mut self) -> Result<()>

Format value

source§

fn reset(&mut self) -> Result<()>

source§

fn start_whitespace(&mut self) -> Result<()>

Implementors§