pub enum AddressInfo {
V4(AddressInfoV4),
V6(AddressInfoV6),
}Expand description
Information associated with an interface IP address.
Variants§
V4(AddressInfoV4)
V6(AddressInfoV6)
Implementations§
Source§impl AddressInfo
impl AddressInfo
Sourcepub fn destination(&self) -> Option<IpAddr>
pub fn destination(&self) -> Option<IpAddr>
The point-to-point destination address associated with the interface.
Trait Implementations§
Source§impl Clone for AddressInfo
impl Clone for AddressInfo
Source§fn clone(&self) -> AddressInfo
fn clone(&self) -> AddressInfo
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 moreAuto Trait Implementations§
impl Freeze for AddressInfo
impl RefUnwindSafe for AddressInfo
impl Send for AddressInfo
impl Sync for AddressInfo
impl Unpin for AddressInfo
impl UnwindSafe for AddressInfo
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