mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Remove now unused UdpSocketNew
See https://github.com/tokio-rs/tokio-core/issues/15#issuecomment-245552463
This commit is contained in:
parent
8f92dc9d56
commit
ab5025a8b7
@ -8,4 +8,4 @@ mod udp;
|
||||
|
||||
pub use self::tcp::{TcpStream, TcpStreamNew};
|
||||
pub use self::tcp::{TcpListener, Incoming};
|
||||
pub use self::udp::{UdpSocket, UdpSocketNew};
|
||||
pub use self::udp::UdpSocket;
|
||||
|
@ -13,11 +13,6 @@ pub struct UdpSocket {
|
||||
io: PollEvented<mio::udp::UdpSocket>,
|
||||
}
|
||||
|
||||
/// Future returned from `UdpSocket::bind` which will resolve to a `UdpSocket`.
|
||||
pub struct UdpSocketNew {
|
||||
inner: IoFuture<UdpSocket>,
|
||||
}
|
||||
|
||||
impl UdpSocket {
|
||||
/// Create a new UDP socket bound to the specified address.
|
||||
///
|
||||
@ -257,15 +252,6 @@ impl fmt::Debug for UdpSocket {
|
||||
}
|
||||
}
|
||||
|
||||
impl Future for UdpSocketNew {
|
||||
type Item = UdpSocket;
|
||||
type Error = io::Error;
|
||||
|
||||
fn poll(&mut self) -> Poll<UdpSocket, io::Error> {
|
||||
self.inner.poll()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
mod sys {
|
||||
use std::os::unix::prelude::*;
|
||||
|
Loading…
x
Reference in New Issue
Block a user