Trait slog_term::RecordDecorator[][src]

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

    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_separator(&mut self) -> Result<()> { ... } }
[]

Per-record decorator

Required methods

fn reset(&mut self) -> Result<()>[src][]

Reset formatting to defaults

Provided methods

fn start_whitespace(&mut self) -> Result<()>[src][]

Format normal text

fn start_msg(&mut self) -> Result<()>[src][]

Format Record message

fn start_timestamp(&mut self) -> Result<()>[src][]

Format timestamp

fn start_level(&mut self) -> Result<()>[src][]

Format Record level

fn start_comma(&mut self) -> Result<()>[src][]

Format a comma between key-value pairs

fn start_key(&mut self) -> Result<()>[src][]

Format key

fn start_value(&mut self) -> Result<()>[src][]

Format a value

fn start_separator(&mut self) -> Result<()>[src][]

Format value

Implementations on Foreign Types

impl RecordDecorator for Box<dyn RecordDecorator>[src][]

fn start_msg(&mut self) -> Result<()>[src][]

Format Record message

fn start_timestamp(&mut self) -> Result<()>[src][]

Format timestamp

fn start_level(&mut self) -> Result<()>[src][]

Format Record level

fn start_comma(&mut self) -> Result<()>[src][]

Format Record message

fn start_key(&mut self) -> Result<()>[src][]

Format key

fn start_value(&mut self) -> Result<()>[src][]

Format value

fn start_separator(&mut self) -> Result<()>[src][]

Format value

Implementors

impl<'a> RecordDecorator for TermRecordDecorator<'a>[src][+]

impl<'a, W> RecordDecorator for PlainRecordDecorator<'a, W> where
    W: Write
[src][+]

impl<W> RecordDecorator for PlainSyncRecordDecorator<W> where
    W: Write
[src][+]