Skip to main content

ToSocketAddrsExt

Trait ToSocketAddrsExt 

Source
pub trait ToSocketAddrsExt {
    type Iter: Iterator<Item = SocketAddr>;

    // Required method
    fn to_socket_addrs_ext(&self) -> Result<Self::Iter>;
}
Expand description

An extension of ToSocketAddrs that allows for a default address when specifying just the port as :8080.

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToSocketAddrsExt for String

Source§

impl<'a> ToSocketAddrsExt for &'a [SocketAddr]

Source§

impl<'a> ToSocketAddrsExt for &'a str

Source§

impl<'a> ToSocketAddrsExt for (&'a str, u16)

Implementors§