Struct cross_socket::packet::ipv6::Ipv6Packet
source · pub struct Ipv6Packet {
pub version: u8,
pub traffic_class: u8,
pub flow_label: u32,
pub payload_length: u16,
pub next_header: IpNextLevelProtocol,
pub hop_limit: u8,
pub source: Ipv6Addr,
pub destination: Ipv6Addr,
pub payload: Vec<u8>,
}
Expand description
Represents the IPv6 options.
Fields§
§version: u8
§traffic_class: u8
§flow_label: u32
§payload_length: u16
§next_header: IpNextLevelProtocol
§hop_limit: u8
§source: Ipv6Addr
§destination: Ipv6Addr
§payload: Vec<u8>
Implementations§
source§impl Ipv6Packet
impl Ipv6Packet
pub fn from_bytes(packet: &[u8]) -> Ipv6Packet
Trait Implementations§
source§impl Clone for Ipv6Packet
impl Clone for Ipv6Packet
source§fn clone(&self) -> Ipv6Packet
fn clone(&self) -> Ipv6Packet
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 Ipv6Packet
impl Debug for Ipv6Packet
source§impl PartialEq<Ipv6Packet> for Ipv6Packet
impl PartialEq<Ipv6Packet> for Ipv6Packet
source§fn eq(&self, other: &Ipv6Packet) -> bool
fn eq(&self, other: &Ipv6Packet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Ipv6Packet
Auto Trait Implementations§
impl RefUnwindSafe for Ipv6Packet
impl Send for Ipv6Packet
impl Sync for Ipv6Packet
impl Unpin for Ipv6Packet
impl UnwindSafe for Ipv6Packet
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