mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-29 23:55:59 +01:00
Fix some doc comments and remove unused impl.
This commit is contained in:
@@ -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>,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user