Trait log4rs::encode::Write
[−]
[src]
pub trait Write: Write { fn set_style(&mut self, style: &Style) -> Result<()> { ... } }
A trait for types that an Encode
r 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.
Write
rs 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.
Implementors
impl<W: Write> Write for AnsiWriter<W>
impl Write for ConsoleWriter
impl<'a> Write for ConsoleWriterLock<'a>
impl<W: Write> Write for SimpleWriter<W>
impl<'a, W: Write + ?Sized> Write for &'a mut W