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())));