[−][src]Trait smoltcp::wire::pretty_print::PrettyPrint
Interface for printing listings.
Required methods
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
fmt: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
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.
Implementors
impl<T: AsRef<[u8]>> PrettyPrint for Frame<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
impl<T: AsRef<[u8]>> PrettyPrint for smoltcp::wire::ArpPacket<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
impl<T: AsRef<[u8]>> PrettyPrint for smoltcp::wire::IgmpPacket<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
impl<T: AsRef<[u8]>> PrettyPrint for NdiscOption<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
impl<T: AsRef<[u8]>> PrettyPrint for smoltcp::wire::UdpPacket<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
impl<T: AsRef<[u8]>> PrettyPrint for smoltcp::wire::TcpPacket<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
impl<T: AsRef<[u8]>> PrettyPrint for smoltcp::wire::Icmpv4Packet<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
impl<T: AsRef<[u8]>> PrettyPrint for smoltcp::wire::Ipv4Packet<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
impl<T: AsRef<[u8]>> PrettyPrint for smoltcp::wire::Ipv6Packet<T>
[src]
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result
[src]
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter,
indent: &mut PrettyIndent
) -> Result