Fix some doc comments and remove unused impl.

This commit is contained in:
Tim Kuehn
2017-01-15 16:45:49 -08:00
parent a8e5bc45a1
commit cabbbb2a0b
2 changed files with 2 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ impl<Req, Resp, E> fmt::Debug for Client<Req, Resp, E>
}
}
/// Additional options to configure how the client connects.
/// Additional options to configure how the client connects and operates.
#[derive(Clone, Default)]
pub struct Options {
reactor: Option<Reactor>,

View File

@@ -17,7 +17,7 @@ use tokio_core::reactor::{self, Handle};
use tokio_proto::BindServer;
use tokio_service::NewService;
/// Additional options to configure how the server starts up.
/// Additional options to configure how the server operates.
#[derive(Clone, Default)]
pub struct Options {
reactor: Option<Reactor>,
@@ -121,13 +121,6 @@ pub struct ListenFuture {
future::FutureResult<io::Result<SocketAddr>, futures::Canceled>>,
}
impl ListenFuture {
#[doc(hidden)]
pub fn from_oneshot(rx: futures::Oneshot<io::Result<SocketAddr>>) -> Self {
ListenFuture { inner: future::Either::A(rx) }
}
}
impl Future for ListenFuture {
type Item = SocketAddr;
type Error = io::Error;