pub enum IpFamily {
V4,
V6,
}Expand description
Ip family selection between Ipv4 and Ipv6.
Variants§
Implementations§
Source§impl IpFamily
impl IpFamily
Sourcepub fn unspecified_addr(&self) -> IpAddr
pub fn unspecified_addr(&self) -> IpAddr
Returns the matching default address.
Sourcepub fn local_addr(&self) -> IpAddr
pub fn local_addr(&self) -> IpAddr
Returns the matching localhost address.
Trait Implementations§
impl Copy for IpFamily
impl Eq for IpFamily
impl StructuralPartialEq for IpFamily
Auto Trait Implementations§
impl Freeze for IpFamily
impl RefUnwindSafe for IpFamily
impl Send for IpFamily
impl Sync for IpFamily
impl Unpin for IpFamily
impl UnwindSafe for IpFamily
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