Skip to main content

IsntSocketAddrExt

Trait IsntSocketAddrExt 

Source
pub trait IsntSocketAddrExt: Sealed {
    // Required methods
    fn is_not_ipv4(&self) -> bool;
    fn is_not_ipv6(&self) -> bool;
}
Expand description

Extension for SocketAddr

Required Methods§

Source

fn is_not_ipv4(&self) -> bool

The negation of is_ipv4

Source

fn is_not_ipv6(&self) -> bool

The negation of is_ipv6

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IsntSocketAddrExt for SocketAddr

Implementors§