pub enum RateLimitError {
TooManyRequests {
retry_after: u64,
limit: u32,
},
QuotaExceeded {
quota: u32,
period: String,
},
}Expand description
Rate limiting errors
Variants§
Trait Implementations§
Source§impl Debug for RateLimitError
impl Debug for RateLimitError
Source§impl Display for RateLimitError
impl Display for RateLimitError
Source§impl Error for RateLimitError
impl Error for RateLimitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<RateLimitError> for MCPError
impl From<RateLimitError> for MCPError
Source§fn from(source: RateLimitError) -> Self
fn from(source: RateLimitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RateLimitError
impl RefUnwindSafe for RateLimitError
impl Send for RateLimitError
impl Sync for RateLimitError
impl Unpin 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