logo
pub struct Table { /* private fields */ }
This is supported on unstable only.
Expand description

Internal table that holds log levels and maps format strings to indices

Implementations

Parses an ELF file and returns the decoded defmt table.

This function returns None if the ELF file contains no .defmt section.

Like parse, but does not verify that the defmt version in the firmware matches the host.

CAUTION: This is meant for defmt/probe-run development only and can result in reading garbage data.

source

pub fn set_timestamp_entry(&mut self, timestamp: TableEntry)

Iterates over the raw symbols of the table entries

Decode the data sent by the device using the previously stored metadata.

  • bytes
    • contains the data sent by the device that logs.
    • contains the [log string index, timestamp, optional fmt string args]

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.