pub struct PreFixed { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ThrottleStrategy for PreFixed
impl ThrottleStrategy for PreFixed
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.
Implementers 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 PreFixed
impl RefUnwindSafe for PreFixed
impl Send for PreFixed
impl Sync for PreFixed
impl Unpin for PreFixed
impl UnwindSafe for PreFixed
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