announce_std/net.rs
1//! announce mocks of `net` traits. Generated from newer-type-std's copies.
2
3#[allow(unused_imports)]
4use announce::announce;
5
6/// announce mock of [`::std::net::ToSocketAddrs`]: invoke `ToSocketAddrs!` to receive its definition.
7///
8/// The real trait is re-exported under the same path.
9#[announce(mock = ::std::net::ToSocketAddrs)]
10pub trait ToSocketAddrs {
11 type Iter: ::core::iter::Iterator<Item = ::std::net::SocketAddr>;
12 fn to_socket_addrs(&self) -> ::std::io::Result<Self::Iter>;
13}
14
15#[doc(no_inline)]
16pub use ::std::net::ToSocketAddrs;