Struct smoltcp::wire::Ipv6Packet [−][src]
Expand description
A read/write wrapper around an Internet Protocol version 6 packet buffer.
Implementations
Create a raw octet buffer with an IPv6 packet structure.
Shorthand for a combination of new_unchecked and check_len.
Ensure that no accessor method will panic if called.
Returns Err(Error::Truncated)
if the buffer is too short.
The result of this check is invalidated by calling set_payload_len.
Consume the packet, returning the underlying buffer.
Return the header length.
Return the traffic class.
Return the flow label field.
Return the payload length field.
Return the next header field.
Set the version field.
Set the traffic class field.
Set the flow label field.
Set the payload length field.
Set the next header field.
Set the hop limit field.
Set the source address field.
Set the destination address field.
Trait Implementations
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &mut Formatter<'_>,
indent: &mut PrettyIndent
) -> Result
fn pretty_print(
buffer: &dyn AsRef<[u8]>,
f: &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. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Packet<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Packet<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more