pub struct Ipv6Repr {
pub src_addr: Address,
pub dst_addr: Address,
pub next_header: Protocol,
pub payload_len: usize,
pub hop_limit: u8,
}
Expand description
A high-level representation of an Internet Protocol version 6 packet header.
Fields§
§src_addr: Address
IPv6 address of the source node.
dst_addr: Address
IPv6 address of the destination node.
next_header: Protocol
Protocol contained in the next header.
payload_len: usize
Length of the payload including the extension headers.
hop_limit: u8
The 8-bit hop limit field.
Implementations§
Source§impl Repr
impl Repr
Trait Implementations§
impl Copy for Repr
impl Eq for Repr
impl StructuralPartialEq for Repr
Auto Trait Implementations§
impl Freeze for Repr
impl RefUnwindSafe for Repr
impl Send for Repr
impl Sync for Repr
impl Unpin for Repr
impl UnwindSafe for Repr
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