pub fn new(reader: R, max: u32) -> Self {
		ThrottledReader {
			reader: reader,
			max: max,
			allowed: max as usize,
			last_check: Instant::now(),
		}
	}
/// Adds throttling to a reader.
/// The resulting reader will read at most `max` amount of bytes per second
Adds throttling to a reader.
The resulting reader will read at most `max` amount of bytes per second
Adds throttling to a reader . The resulting reader will read at most ` max ` amount of bytes per second
pub fn new(reader: R, max: u32) -> Self {
		ThrottledReader {
			reader: reader,
			max: max,
			allowed: max as usize,
			last_check: Instant::now(),
		}
	}
pub fn new ( reader : R , max : u32 ) -> Self { ThrottledReader { reader : reader , max : max , allowed : max as usize , last_check : Instant :: now ( ) , } }
Adds throttling to a reader.
Adds throttling to a reader .
reader
R
max
u32