Struct defmt_decoder::log::Printer [−][src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,