From 667eef4066e558df13da05fe438591ac98b9052a Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Sat, 16 Jan 2016 01:14:46 -0800 Subject: [PATCH] Clarify timeout arg --- tarpc/src/protocol.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tarpc/src/protocol.rs b/tarpc/src/protocol.rs index 109a1a6..8143be2 100644 --- a/tarpc/src/protocol.rs +++ b/tarpc/src/protocol.rs @@ -354,7 +354,8 @@ impl Client where Reply: serde::de::Deserialize + Send + 'static, Request: serde::ser::Serialize { - /// Create a new client that connects to `addr` + /// Create a new client that connects to `addr`. The client uses the given timeout + /// for both reads and writes. pub fn new(addr: A, timeout: Option) -> io::Result { let stream = try!(TcpStream::connect(addr)); let requests = Arc::new(Mutex::new(Ok(HashMap::new())));