IpVersion

Trait IpVersion 

Source
pub trait IpVersion:
    Copy
    + Hash
    + Eq
    + Unpin
    + Send
    + Sync
    + Into<IpAddr>
    + 'static
    + Sealed { }
Expand description

Either an Ipv4Addr or an Ipv6Addr.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IpVersion for Ipv4Addr

Source§

impl IpVersion for Ipv6Addr

Implementors§