Enum smoltcp::wire::Ipv6RoutingRepr [−][src]
#[non_exhaustive]
pub enum Ipv6RoutingRepr<'a> {
Type2 {
next_header: Protocol,
length: u8,
segments_left: u8,
home_address: Address,
},
Rpl {
next_header: Protocol,
length: u8,
segments_left: u8,
cmpr_i: u8,
cmpr_e: u8,
pad: u8,
addresses: &'a [u8],
},
}
Expand description
A high-level representation of an IPv6 Routing Header.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Type2
Fields
next_header: Protocol
The type of header immediately following the Routing header.
length: u8
Length of the Routing header in 8-octet units, not including the first 8 octets.
segments_left: u8
Number of route segments remaining.
home_address: Address
The home address of the destination mobile node.
Rpl
Fields
next_header: Protocol
The type of header immediately following the Routing header.
length: u8
Length of the Routing header in 8-octet units, not including the first 8 octets.
segments_left: u8
Number of route segments remaining.
cmpr_i: u8
Number of prefix octets from each segment, except the last segment, that are elided.
cmpr_e: u8
Number of prefix octets from the last segment that are elided.
pad: u8
Number of octets that are used for padding after address[n]
at the end of the
RPL Source Route Header.
Implementations
Parse an IPv6 Routing Header and return a high-level representation.
Return the length, in bytes, of a header that will be emitted from this high-level representation.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Repr<'a>
impl<'a> UnwindSafe for Repr<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more