Remove re-exports in async_std::net

tosocketaddrs
Stjepan Glavina 5 years ago
parent ddb4dc87a1
commit 15445e3ac1

@ -29,8 +29,6 @@
//! # }) }
//! ```
pub use std::net::{SocketAddr, SocketAddrV4, SocketAddrV6};
pub use addr::ToSocketAddrs;
pub use tcp::{Incoming, TcpListener, TcpStream};
pub use udp::UdpSocket;

@ -1,3 +1,4 @@
use std::net::SocketAddr;
use std::pin::Pin;
use cfg_if::cfg_if;
@ -7,7 +8,7 @@ use super::TcpStream;
use crate::future::Future;
use crate::io;
use crate::net::driver::IoHandle;
use crate::net::{SocketAddr, ToSocketAddrs};
use crate::net::ToSocketAddrs;
use crate::task::{Context, Poll};
/// A TCP socket server, listening for connections.

@ -1,5 +1,6 @@
use std::io::{IoSlice, IoSliceMut};
use std::mem;
use std::net::SocketAddr;
use std::pin::Pin;
use cfg_if::cfg_if;
@ -8,7 +9,7 @@ use futures::io::{AsyncRead, AsyncWrite};
use crate::io;
use crate::net::driver::IoHandle;
use crate::net::{SocketAddr, ToSocketAddrs};
use crate::net::ToSocketAddrs;
use crate::task::{Context, Poll};
/// A TCP stream between a local and a remote socket.

@ -1,11 +1,12 @@
use std::io;
use std::net::SocketAddr;
use cfg_if::cfg_if;
use futures::future;
use std::net::{Ipv4Addr, Ipv6Addr};
use crate::net::driver::IoHandle;
use crate::net::{SocketAddr, ToSocketAddrs};
use crate::net::ToSocketAddrs;
use crate::task::Poll;
/// A UDP socket.

@ -1,6 +1,6 @@
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddrV4, SocketAddrV6};
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6};
use async_std::net::{SocketAddr, ToSocketAddrs};
use async_std::net::ToSocketAddrs;
use async_std::task;
fn tsa<A: ToSocketAddrs>(a: A) -> Result<Vec<SocketAddr>, String> {

Loading…
Cancel
Save