Trait defmt::Write[][src]

pub trait Write {
    fn write(&mut self, bytes: &[u8]);
}
Expand description

Trait for defmt logging targets.

Required methods

Writes bytes to the destination.

This will be called by the defmt logging macros to transmit encoded data. The write operation must not fail.

Note that a call to write does not correspond to a defmt logging macro invocation. A single defmt::info! call can result in an arbitrary number of write calls.

Implementors