Struct http_rate::TooManyRequests
source · pub struct TooManyRequests { /* private fields */ }
Expand description
Error happen when client exceeds rate limit.
Implementations§
source§impl TooManyRequests
impl TooManyRequests
sourcepub fn extend_response<Ext>(&self, res: &mut Response<Ext>)
pub fn extend_response<Ext>(&self, res: &mut Response<Ext>)
extend response headers with status code and headers
StatusCode: 429
Header: x-ratelimit-after: <num in second>
Trait Implementations§
source§impl Debug for TooManyRequests
impl Debug for TooManyRequests
source§impl Display for TooManyRequests
impl Display for TooManyRequests
source§impl Error for TooManyRequests
impl Error for TooManyRequests
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl RefUnwindSafe for TooManyRequests
impl Send for TooManyRequests
impl Sync for TooManyRequests
impl Unpin for TooManyRequests
impl UnwindSafe for TooManyRequests
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