pub struct IpAndMacAddress {
pub mac_address: MacAddr6,
pub ip_address: Ipv4Addr,
pub subnet_mask: Ipv4Addr,
pub gateway_address: Ipv4Addr,
pub tcp_port: u16,
pub dns_primary: Ipv4Addr,
pub dns_secondary: Ipv4Addr,
pub http_server_port: u16,
}Fields§
§mac_address: MacAddr6§ip_address: Ipv4Addr§subnet_mask: Ipv4Addr§gateway_address: Ipv4Addr§tcp_port: u16§dns_primary: Ipv4Addr§dns_secondary: Ipv4Addr§http_server_port: u16Implementations§
Trait Implementations§
Source§impl Clone for IpAndMacAddress
impl Clone for IpAndMacAddress
Source§fn clone(&self) -> IpAndMacAddress
fn clone(&self) -> IpAndMacAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IpAndMacAddress
impl Debug for IpAndMacAddress
Source§impl<'de> Deserialize<'de> for IpAndMacAddress
impl<'de> Deserialize<'de> for IpAndMacAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IpAndMacAddress
impl PartialEq for IpAndMacAddress
Source§fn eq(&self, other: &IpAndMacAddress) -> bool
fn eq(&self, other: &IpAndMacAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IpAndMacAddress
impl Serialize for IpAndMacAddress
impl StructuralPartialEq for IpAndMacAddress
Auto Trait Implementations§
impl Freeze for IpAndMacAddress
impl RefUnwindSafe for IpAndMacAddress
impl Send for IpAndMacAddress
impl Sync for IpAndMacAddress
impl Unpin for IpAndMacAddress
impl UnsafeUnpin for IpAndMacAddress
impl UnwindSafe for IpAndMacAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more