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

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

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>

impl<'a> !Send for Printer<'a>

impl<'a> !Sync for Printer<'a>

impl<'a> Unpin for Printer<'a>

impl<'a> !UnwindSafe for Printer<'a>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.