Trait smoltcp::wire::pretty_print::PrettyPrint
source · pub trait PrettyPrint {
// Required method
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
fmt: &mut Formatter<'_>,
indent: &mut PrettyIndent,
) -> Result;
}
Expand description
Interface for printing listings.
Required Methods§
sourcefn pretty_print(
buffer: &dyn AsRef<[u8]>,
fmt: &mut Formatter<'_>,
indent: &mut PrettyIndent,
) -> Result
fn pretty_print( buffer: &dyn AsRef<[u8]>, fmt: &mut Formatter<'_>, indent: &mut PrettyIndent, ) -> Result
Write a concise, formatted representation of a packet contained in the provided buffer, and any nested packets it may contain.
pretty_print
accepts a buffer and not a packet wrapper because the packet might
be truncated, and so it might not be possible to create the packet wrapper.
Object Safety§
This trait is not object safe.