ToIpv6Address

Trait ToIpv6Address 

Source
pub trait ToIpv6Address {
    // Required method
    fn ipv6(&self) -> Result<Ipv6Addr>;
}
Expand description

Trait for converting various types into an IPv6 address.

Required Methods§

Source

fn ipv6(&self) -> Result<Ipv6Addr>

Attempts to convert the implementing type into an Ipv6Addr. Returns the IPv6 address on success or an error on failure.

Implementations on Foreign Types§

Source§

impl ToIpv6Address for &str

Source§

impl ToIpv6Address for IpAddr

Source§

impl ToIpv6Address for String

Source§

impl ToIpv6Address for Ipv6Addr

Implementors§