[−][src]Trait async_coap::ToSocketAddrs
A flavor of std::net::ToSocketAddrs
that allows the implementation of
SocketAddr
to be replaced.
This is necessary to enable support for things like CoAP-over-SMS, where socket addresses are telephone numbers.
Associated Types
type Iter: Iterator<Item = Self::SocketAddr>
Analogous to std::net::ToSocketAddrs::Iter
type SocketAddr: SocketAddrExt + Copy
The SocketAddr
type returned by the above iterator.
type Error: Debug
The error type to use for errors while resolving.
Required methods
fn to_socket_addrs(&self) -> Result<Self::Iter, Self::Error>
Analogous to std::net::ToSocketAddrs::to_socket_addrs
Implementors
impl ToSocketAddrs for LoopbackSocketAddr
[src]
type Iter = IntoIter<Self::SocketAddr>
type SocketAddr = Self
type Error = Error
fn to_socket_addrs(&self) -> Result<Self::Iter, Self::Error>
[src]
impl ToSocketAddrs for NullSocketAddr
[src]
type Iter = IntoIter<Self::SocketAddr>
type SocketAddr = Self
type Error = Error
fn to_socket_addrs(&self) -> Result<Self::Iter, Self::Error>
[src]
impl<T, I> ToSocketAddrs for T where
T: ToSocketAddrs<Iter = I>,
I: Iterator<Item = SocketAddr>,
[src]
T: ToSocketAddrs<Iter = I>,
I: Iterator<Item = SocketAddr>,
Blanket implementation of ToSocketAddrs
for all implementations of std::net::ToSocketAddrs
.