pub trait ThrottledStream { // Provided method fn throttle(self, pool: ThrottlePool) -> Throttled<Self> where Self: Stream + Sized { ... } }
Provides a throttle() method on all Stream’s.
throttle()
Stream
Returns a new stream, which throttles items from the original stream, according to the rate defined by pool.
pool