Struct packet_formats::ipv6::Ipv6PacketBuilder
source · pub struct Ipv6PacketBuilder { /* private fields */ }
Expand description
A builder for IPv6 packets.
Implementations§
source§impl Ipv6PacketBuilder
impl Ipv6PacketBuilder
sourcepub fn new<S: Into<Ipv6Addr>, D: Into<Ipv6Addr>>(
src_ip: S,
dst_ip: D,
hop_limit: u8,
proto: Ipv6Proto
) -> Ipv6PacketBuilder
pub fn new<S: Into<Ipv6Addr>, D: Into<Ipv6Addr>>( src_ip: S, dst_ip: D, hop_limit: u8, proto: Ipv6Proto ) -> Ipv6PacketBuilder
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).
Trait Implementations§
source§impl Clone for Ipv6PacketBuilder
impl Clone for Ipv6PacketBuilder
source§fn clone(&self) -> Ipv6PacketBuilder
fn clone(&self) -> Ipv6PacketBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Ipv6PacketBuilder
impl Debug for Ipv6PacketBuilder
source§impl IpPacketBuilder<Ipv6> for Ipv6PacketBuilder
impl IpPacketBuilder<Ipv6> for Ipv6PacketBuilder
source§impl PacketBuilder for Ipv6PacketBuilder
impl PacketBuilder for Ipv6PacketBuilder
source§impl PartialEq for Ipv6PacketBuilder
impl PartialEq for Ipv6PacketBuilder
source§fn eq(&self, other: &Ipv6PacketBuilder) -> bool
fn eq(&self, other: &Ipv6PacketBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Ipv6PacketBuilder
impl StructuralPartialEq for Ipv6PacketBuilder
Auto Trait Implementations§
impl Freeze for Ipv6PacketBuilder
impl RefUnwindSafe for Ipv6PacketBuilder
impl Send for Ipv6PacketBuilder
impl Sync for Ipv6PacketBuilder
impl Unpin for Ipv6PacketBuilder
impl UnwindSafe for Ipv6PacketBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more