pub struct NoThrottle;Implementations§
Source§impl NoThrottle
impl NoThrottle
Trait Implementations§
Source§impl Default for NoThrottle
impl Default for NoThrottle
Source§fn default() -> NoThrottle
fn default() -> NoThrottle
Returns the “default value” for a type. Read more
Source§impl ThrottleStrategy for NoThrottle
impl ThrottleStrategy for NoThrottle
Source§fn throttle(&self, _flow_control_headers: Option<&FlowControlHeaders>)
fn throttle(&self, _flow_control_headers: Option<&FlowControlHeaders>)
Throttle the request based on optional flow control headers.
Implementors might use the headers to adjust the throttling or ignore
them altogether. Ex. strategies could be a fixed delay, random, or based
on rate limiting headers.
Source§fn strategy(&self) -> ThrottleStrategyType
fn strategy(&self) -> ThrottleStrategyType
Return strategy type
Source§fn throttle_for(&self, delay: Milliseconds)
fn throttle_for(&self, delay: Milliseconds)
Throttle for specific amount of time.
Auto Trait Implementations§
impl Freeze for NoThrottle
impl RefUnwindSafe for NoThrottle
impl Send for NoThrottle
impl Sync for NoThrottle
impl Unpin for NoThrottle
impl UnwindSafe for NoThrottle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more