pub fn new(stream: S) -> TimeoutStream<S> {
        let writer = TimeoutWriter::new(stream);
        let stream = TimeoutReader::new(writer);
        TimeoutStream { stream }
    }
/// Returns a new `TimeoutStream` wrapping the specified stream.
///
/// There is initially no read or write timeout.
Returns a new `TimeoutStream` wrapping the specified stream.
There is initially no read or write timeout.
Returns a new ` TimeoutStream ` wrapping the specified stream . There is initially no read or write timeout .
pub fn new(stream: S) -> TimeoutStream<S> {
        let writer = TimeoutWriter::new(stream);
        let stream = TimeoutReader::new(writer);
        TimeoutStream { stream }
    }
pub fn new ( stream : S ) -> TimeoutStream < S > { let writer = TimeoutWriter :: new ( stream ) ; let stream = TimeoutReader :: new ( writer ) ; TimeoutStream { stream } }
Returns a new `TimeoutStream` wrapping the specified stream.
Returns a new ` TimeoutStream ` wrapping the specified stream .
stream
S
stream
S