pub struct RateLimitGuard { /* private fields */ }Expand description
RAII guard that automatically records response when dropped
Implementations§
Source§impl RateLimitGuard
impl RateLimitGuard
Sourcepub async fn mark_response(self)
pub async fn mark_response(self)
Manually mark that the API response was received This will record the response time and prevent automatic recording on drop
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateLimitGuard
impl !RefUnwindSafe for RateLimitGuard
impl Send for RateLimitGuard
impl Sync for RateLimitGuard
impl Unpin for RateLimitGuard
impl !UnwindSafe for RateLimitGuard
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