pub struct Ipv6 {
pub version: u4,
pub traffic_class: u8,
pub flow_label: u20be,
pub payload_length: u16be,
pub next_header: IpNextHeaderProtocol,
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: IpNextHeaderProtocol
§hop_limit: u8
§source: Ipv6Addr
§destination: Ipv6Addr
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ipv6
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