Struct nex_packet::ipv6::Ipv6
source · pub struct Ipv6 {
pub version: u4,
pub traffic_class: u8,
pub flow_label: u20be,
pub payload_length: u16be,
pub next_header: IpNextLevelProtocol,
pub hop_limit: u8,
pub source: Ipv6Addr,
pub destination: Ipv6Addr,
pub payload: Vec<u8>,
}Expand description
Represents an IPv6 Packet.
Fields§
§version: u4§traffic_class: u8§flow_label: u20be§payload_length: u16be§next_header: IpNextLevelProtocol§hop_limit: u8§source: Ipv6Addr§destination: Ipv6Addr§payload: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Ipv6
impl Send for Ipv6
impl Sync for Ipv6
impl Unpin for Ipv6
impl UnwindSafe for Ipv6
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