pub fn new<S: Into<Ipv4Addr>, D: Into<Ipv4Addr>>(
        src_ip: S,
        dst_ip: D,
        ttl: u8,
        proto: Ipv4Proto,
    ) -> Ipv4PacketBuilder {
        Ipv4PacketBuilder {
            dscp: 0,
            ecn: 0,
            id: 0,
            flags: 0,
            frag_off: 0,
            ttl,
            proto: proto,
            src_ip: src_ip.into(),
            dst_ip: dst_ip.into(),
        }
    }
/// Construct a new `Ipv4PacketBuilder`.
Construct a new `Ipv4PacketBuilder`.
Construct a new ` Ipv4PacketBuilder ` .
pub fn new<S: Into<Ipv4Addr>, D: Into<Ipv4Addr>>(
        src_ip: S,
        dst_ip: D,
        ttl: u8,
        proto: Ipv4Proto,
    ) -> Ipv4PacketBuilder {
        Ipv4PacketBuilder {
            dscp: 0,
            ecn: 0,
            id: 0,
            flags: 0,
            frag_off: 0,
            ttl,
            proto: proto,
            src_ip: src_ip.into(),
            dst_ip: dst_ip.into(),
        }
    }
pub fn new < S : Into < Ipv4Addr > , D : Into < Ipv4Addr > > ( src_ip : S , dst_ip : D , ttl : u8 , proto : Ipv4Proto , ) -> Ipv4PacketBuilder { Ipv4PacketBuilder { dscp : 0 , ecn : 0 , id : 0 , flags : 0 , frag_off : 0 , ttl , proto : proto , src_ip : src_ip . into ( ) , dst_ip : dst_ip . into ( ) , } }
Construct a new `Ipv4PacketBuilder`.
Construct a new ` Ipv4PacketBuilder ` .
src_ip
S
dst_ip
D
ttl
u8
proto
Ipv4Proto
src_ip
S
dst_ip
D
ttl
u8
proto
Ipv4Proto