Struct defmt_decoder::log::Printer[][src]

pub struct Printer<'a> { /* fields omitted */ }
This is supported on unstable only.

Printer for DefmtRecords.

Implementations

impl<'a> Printer<'a>[src]

pub fn include_location(&mut self, include_location: bool) -> &mut Self[src]

Configure whether to include location info (file, line) in the output.

If true, an additional line will be included in the output that contains file and line information of the logging statement. By default, this is false.

pub fn min_timestamp_width(&mut self, min_timestamp_width: usize) -> &mut Self[src]

Pads the defmt timestamp to take up at least the given number of characters.

pub fn print_colored<W: Write>(&self, sink: &mut W) -> Result<()>[src]

Prints the colored log frame to sink.

The format is as follows (this is not part of the stable API and may change):

<timestamp> <level> <args>
└─ <module> @ <file>:<line>

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Printer<'a>[src]

impl<'a> !Send for Printer<'a>[src]

impl<'a> !Sync for Printer<'a>[src]

impl<'a> Unpin for Printer<'a>[src]

impl<'a> !UnwindSafe for Printer<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.