pub enum RateLimitError {
MissingValues,
NonAsciiHeader,
InvalidInteger(ParseIntError),
InvalidTimestamp(Error),
}Expand description
Errors that can occur when parsing rate limit information from the response’s HTTP headers.
Variants§
MissingValues
A header was missing.
NonAsciiHeader
A header contained non-ASCII characters.
InvalidInteger(ParseIntError)
Failed to parse a header value as an integer.
InvalidTimestamp(Error)
Failed to parse the reset header value.
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<Error> for RateLimitError
impl From<Error> for RateLimitError
Source§impl From<ParseIntError> for RateLimitError
impl From<ParseIntError> for RateLimitError
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl<Endpoint> From<RateLimitError> for ClientError<Endpoint>
impl<Endpoint> From<RateLimitError> for ClientError<Endpoint>
Source§fn from(error: RateLimitError) -> Self
fn from(error: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.