pub struct Ipv4 {
pub local_ip_address: [u8; 4],
pub remote_ip_address: [u8; 4],
pub local_port: u16,
pub remote_port: u16,
pub protocol: u16,
pub ip_address_origin: Ipv4AddressOrigin,
pub gateway_ip_address: [u8; 4],
pub subnet_mask: [u8; 4],
}
Expand description
IPv4 messaging device path node.
Fields§
§local_ip_address: [u8; 4]
Local IPv4 address.
remote_ip_address: [u8; 4]
Remote IPv4 address.
local_port: u16
Local port number.
remote_port: u16
Remote port number.
protocol: u16
Network protocol. See https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
ip_address_origin: Ipv4AddressOrigin
Whether the source IP address is static or assigned via DHCP.
gateway_ip_address: [u8; 4]
Gateway IP address.
subnet_mask: [u8; 4]
Subnet mask.
Trait Implementations§
source§impl BuildNode for Ipv4
impl BuildNode for Ipv4
source§fn size_in_bytes(&self) -> Result<u16, BuildError>
fn size_in_bytes(&self) -> Result<u16, BuildError>
Size of the node in bytes, including the standard node
header. Returns
BuildError::NodeTooBig
if the node’s size
does not fit in a u16
.source§fn write_data(&self, out: &mut [MaybeUninit<u8>])
fn write_data(&self, out: &mut [MaybeUninit<u8>])
Write out the node data. Read more
Auto Trait Implementations§
impl Freeze for Ipv4
impl RefUnwindSafe for Ipv4
impl Send for Ipv4
impl Sync for Ipv4
impl Unpin for Ipv4
impl UnwindSafe for Ipv4
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