pub enum IpFamily {
Any,
Ipv4Only,
Ipv6Only,
}Expand description
Configuration of IP family to use.
Used to limit the IP to either IPv4, IPv6 or any.
Variants§
Implementations§
Source§impl IpFamily
impl IpFamily
Sourcepub fn keep_wanted<'a>(
&'a self,
iter: impl Iterator<Item = SocketAddr> + 'a,
) -> impl Iterator<Item = SocketAddr> + 'a
pub fn keep_wanted<'a>( &'a self, iter: impl Iterator<Item = SocketAddr> + 'a, ) -> impl Iterator<Item = SocketAddr> + 'a
Filter the socket addresses to the family of IP.
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
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.