/// Constructs a new `Ipv6PacketBuilder`.
///
/// The `proto` field encodes the protocol number identifying the upper
/// layer payload, not the Next Header value of the first extension header
/// (if one exists).
Constructs a new `Ipv6PacketBuilder`.
The `proto` field encodes the protocol number identifying the upper
layer payload, not the Next Header value of the first extension header
(if one exists).
Constructs a new ` Ipv6PacketBuilder ` . The ` proto ` field encodes the protocol number identifying the upper layer payload not the Next Header value of the first extension header ( if one exists ) .
pub fn new<S: Into<Ipv6Addr>, D: Into<Ipv6Addr>>(
        src_ip: S,
        dst_ip: D,
        hop_limit: u8,
        proto: Ipv6Proto,
    ) -> Ipv6PacketBuilder {
        Ipv6PacketBuilder {
            ds: 0,
            ecn: 0,
            flowlabel: 0,
            hop_limit,
            proto,
            src_ip: src_ip.into(),
            dst_ip: dst_ip.into(),
        }
    }
pub fn new < S : Into < Ipv6Addr > , D : Into < Ipv6Addr > > ( src_ip : S , dst_ip : D , hop_limit : u8 , proto : Ipv6Proto , ) -> Ipv6PacketBuilder { Ipv6PacketBuilder { ds : 0 , ecn : 0 , flowlabel : 0 , hop_limit , proto , src_ip : src_ip . into ( ) , dst_ip : dst_ip . into ( ) , } }
Constructs a new `Ipv6PacketBuilder`.
Constructs a new ` Ipv6PacketBuilder ` .
src_ip
S
dst_ip
D
hop_limit
u8
proto
Ipv6Proto