Expand description
A highly efficient logging framework that targets resource-constrained devices, like microcontrollers.
Check out the defmt book at https://defmt.ferrous-systems.com for more information about how to use it.
Compatibility
The defmt wire format might change between major versions. Attempting to read a defmt stream
with an incompatible version will result in an error. This means that you have to update both
the host and target side if a breaking change in defmt is released.
Macros
Just like the core::assert! macro but defmt is used to log the panic message
Just like the core::assert_eq! macro but defmt is used to log the panic message
Just like the core::assert_ne! macro but defmt is used to log the panic message
Generates a bitflags structure that can be formatted with defmt.
Logs data at debug level.
Just like the core::debug_assert! macro but defmt is used to log the panic message
Just like the core::debug_assert_eq! macro but defmt is used to log the panic message
Just like the core::debug_assert_ne! macro but defmt is used to log the panic message
Logs data at error level.
Logs data at info level.
Just like the core::panic! macro but defmt is used to log the panic message
Always logs data irrespective of log level.
Defines the global timestamp provider for defmt.
Just like the core::todo! macro but defmt is used to log the panic message
Logs data at trace level.
Just like the core::unimplemented! macro but defmt is used to log the panic message
Just like the core::unreachable! macro but defmt is used to log the panic message
Unwraps an Option or Result, panicking if it is None or Err.
Logs data at warn level.
Structs
An “adapter” type to feed Debug values into defmt macros, which expect defmt::Format values.
An “adapter” type to feed Display values into defmt macros, which expect defmt::Format values.
Encode raw defmt frames for sending over the wire.
Handle to a defmt logger.
Traits
Trait for types that can be formatted via defmt.
Global logger acquire-release mechanism
Functions
Block until host has read all pending data.
Attribute Macros
Defines the global defmt logger.
Overrides the panicking behavior of defmt::panic!