pub struct Header {
pub traffic_class: TrafficClass,
pub flow_label: FlowLabel,
pub payload_length: u16,
pub next_header: Protocol,
pub hop_limit: u8,
pub source_address: Address,
pub destination_address: Address,
}Expand description
An IPv6 header.
Fields§
§traffic_class: TrafficClassTraffic Class field.
flow_label: FlowLabelFlow Label field.
payload_length: u16Payload Length field (in bytes).
next_header: ProtocolNext Header field.
hop_limit: u8Hop Limit field.
source_address: AddressSource Address field.
destination_address: AddressDestination Address field.
Implementations§
Trait Implementations§
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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