pub struct NoThrottle;Expand description
A throttle that charges nothing and holds nothing: a client built without one.
Trait Implementations§
Source§impl Clone for NoThrottle
impl Clone for NoThrottle
impl Copy for NoThrottle
Source§impl Debug for NoThrottle
impl Debug for NoThrottle
Source§impl Default for NoThrottle
impl Default for NoThrottle
Source§impl Throttle for NoThrottle
impl Throttle for NoThrottle
Source§async fn acquire(&self, _meta: &RequestMeta<'_>) -> Result<Charge, Refused>
async fn acquire(&self, _meta: &RequestMeta<'_>) -> Result<Charge, Refused>
Wait until the request may be sent, and charge it. Read more
Source§fn observe(
&self,
_charge: &Charge,
_response: &ResponseMeta<'_>,
_attempt: &AttemptInfo,
)
fn observe( &self, _charge: &Charge, _response: &ResponseMeta<'_>, _attempt: &AttemptInfo, )
See a response to an attempt
acquire charged. Runs on every
response, before the policy decides. Records counts and tiers only.Auto Trait Implementations§
impl Freeze for NoThrottle
impl RefUnwindSafe for NoThrottle
impl Send for NoThrottle
impl Sync for NoThrottle
impl Unpin for NoThrottle
impl UnsafeUnpin 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