pub struct IPv6EndpointOptionRepr {
pub ipv6_address: [u8; 16],
pub protocol: TransportProtocol,
pub port: u16,
}Expand description
High-level representation of an IPv6 Endpoint Option.
This provides a builder-style API for constructing and parsing IPv6 endpoint options without manually managing byte arrays.
Fields§
§ipv6_address: [u8; 16]IPv6 address (16 bytes)
protocol: TransportProtocolTransport protocol (TCP=0x06, UDP=0x11)
port: u16Port number
Implementations§
Trait Implementations§
Source§impl Clone for IPv6EndpointOptionRepr
impl Clone for IPv6EndpointOptionRepr
Source§fn clone(&self) -> IPv6EndpointOptionRepr
fn clone(&self) -> IPv6EndpointOptionRepr
Returns a duplicate 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 IPv6EndpointOptionRepr
impl Debug for IPv6EndpointOptionRepr
Source§impl PartialEq for IPv6EndpointOptionRepr
impl PartialEq for IPv6EndpointOptionRepr
impl Copy for IPv6EndpointOptionRepr
impl Eq for IPv6EndpointOptionRepr
impl StructuralPartialEq for IPv6EndpointOptionRepr
Auto Trait Implementations§
impl Freeze for IPv6EndpointOptionRepr
impl RefUnwindSafe for IPv6EndpointOptionRepr
impl Send for IPv6EndpointOptionRepr
impl Sync for IPv6EndpointOptionRepr
impl Unpin for IPv6EndpointOptionRepr
impl UnwindSafe for IPv6EndpointOptionRepr
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