pub enum RetryAfterError {
Empty,
Overflow,
InvalidSyntax,
InvalidDate,
WeekdayMismatch,
}Expand description
Invalid Retry-After syntax or value.
Variants§
Empty
The value was empty.
Overflow
The delay or date cannot be represented.
InvalidSyntax
The value was neither decimal delay-seconds nor a supported HTTP date.
InvalidDate
A date component was outside its valid range.
WeekdayMismatch
The advertised weekday contradicted the calendar date.
Trait Implementations§
Source§impl Clone for RetryAfterError
impl Clone for RetryAfterError
Source§fn clone(&self) -> RetryAfterError
fn clone(&self) -> RetryAfterError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RetryAfterError
Source§impl Debug for RetryAfterError
impl Debug for RetryAfterError
Source§impl Display for RetryAfterError
impl Display for RetryAfterError
impl Eq for RetryAfterError
Source§impl Error for RetryAfterError
impl Error for RetryAfterError
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 PartialEq for RetryAfterError
impl PartialEq for RetryAfterError
impl StructuralPartialEq for RetryAfterError
Auto Trait Implementations§
impl Freeze for RetryAfterError
impl RefUnwindSafe for RetryAfterError
impl Send for RetryAfterError
impl Sync for RetryAfterError
impl Unpin for RetryAfterError
impl UnsafeUnpin for RetryAfterError
impl UnwindSafe for RetryAfterError
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