pub enum RateLimitError {
RateLimitExceeded {
retry_after: u64,
limit: u32,
},
Unauthorized,
}Expand description
Error type for rate limiting failures
Variants§
Trait Implementations§
Source§impl Debug for RateLimitError
impl Debug for RateLimitError
Source§impl IntoResponse for RateLimitError
impl IntoResponse for RateLimitError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for RateLimitError
impl RefUnwindSafe for RateLimitError
impl Send for RateLimitError
impl Sync for RateLimitError
impl Unpin for RateLimitError
impl UnsafeUnpin for RateLimitError
impl UnwindSafe for RateLimitError
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