pub struct LocalAddress {
pub ipv4: Option<Ipv4Addr>,
pub mac: Option<String<17>>,
pub ipv6_link_local: Option<Ipv6Addr>,
pub ipv6_global: Option<Ipv6Addr>,
}Expand description
Local IP and MAC addresses
Fields§
§ipv4: Option<Ipv4Addr>Local IPv4 address if assigned
mac: Option<String<17>>Local MAC address
ipv6_link_local: Option<Ipv6Addr>Link local IPv6 address if assigned
ipv6_global: Option<Ipv6Addr>Global IPv6 address if assigned
Trait Implementations§
Source§impl Clone for LocalAddress
impl Clone for LocalAddress
Source§fn clone(&self) -> LocalAddress
fn clone(&self) -> LocalAddress
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 LocalAddress
impl Debug for LocalAddress
Source§impl Default for LocalAddress
impl Default for LocalAddress
Source§fn default() -> LocalAddress
fn default() -> LocalAddress
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalAddress
impl RefUnwindSafe for LocalAddress
impl Send for LocalAddress
impl Sync for LocalAddress
impl Unpin for LocalAddress
impl UnwindSafe for LocalAddress
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