[][src]Trait log4rs::encode::Write

pub trait Write: Write {
    fn set_style(&mut self, style: &Style) -> Result<()> { ... }
}

A trait for types that an Encoder will write to.

It extends std::io::Write and adds some extra functionality.

Provided methods

fn set_style(&mut self, style: &Style) -> Result<()>

Sets the output text style, if supported.

Writers should ignore any parts of the Style they do not support.

The default implementation returns Ok(()). Implementations that do not support styling should do this as well.

Loading content...

Implementations on Foreign Types

impl<'a, W: Write + ?Sized> Write for &'a mut W[src]

Loading content...

Implementors

impl Write for ConsoleWriter[src]

impl<'a> Write for ConsoleWriterLock<'a>[src]

impl<W: Write> Write for AnsiWriter<W>[src]

impl<W: Write> Write for SimpleWriter<W>[src]

fn set_style(&mut self, style: &Style) -> Result<()>[src]

Loading content...