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