pub enum NetworkEndpointAddress {
IPv4 {
address: Option<String>,
address_source: Option<IPv4AddressSource>,
default_gateway: Option<String>,
network_mask: Option<String>,
},
IPv6 {
address: Option<String>,
address_source: Option<IPv6AddressSource>,
default_router: Option<String>,
},
}
Expand description
address information for a network endpoint
Variants§
IPv4
IPv4 addressing information
Fields
§
address: Option<String>
IPv4 address in the form “a.b.c.d”. This is used if the address source is FIXED
§
address_source: Option<IPv4AddressSource>
defines how the address is obtained
IPv6
IPv6 addressing information
Trait Implementations§
Source§impl Clone for NetworkEndpointAddress
impl Clone for NetworkEndpointAddress
Source§fn clone(&self) -> NetworkEndpointAddress
fn clone(&self) -> NetworkEndpointAddress
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 NetworkEndpointAddress
impl Debug for NetworkEndpointAddress
Source§impl PartialEq for NetworkEndpointAddress
impl PartialEq for NetworkEndpointAddress
Source§impl TryFrom<Element> for NetworkEndpointAddress
impl TryFrom<Element> for NetworkEndpointAddress
impl Eq for NetworkEndpointAddress
impl StructuralPartialEq for NetworkEndpointAddress
Auto Trait Implementations§
impl Freeze for NetworkEndpointAddress
impl RefUnwindSafe for NetworkEndpointAddress
impl Send for NetworkEndpointAddress
impl Sync for NetworkEndpointAddress
impl Unpin for NetworkEndpointAddress
impl UnwindSafe for NetworkEndpointAddress
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.