#[non_exhaustive]pub enum RangeRejected {
TooManyOverlapping,
TooManyUnparseable,
TooManyDigits,
TooMany,
}Expand description
Rejected because of tolerance, possibly an abusive client.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooManyOverlapping
Spec says ignore or reject https://www.rfc-editor.org/rfc/rfc9110.html#section-14.2-6. Spec says reject with a 416 (if rejecting) https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.17
TooManyUnparseable
TooManyDigits
TooMany
Spec says ignore or reject (with a 416) https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.17
Trait Implementations§
Source§impl Clone for RangeRejected
impl Clone for RangeRejected
impl Copy for RangeRejected
Source§impl Debug for RangeRejected
impl Debug for RangeRejected
impl Eq for RangeRejected
Source§impl PartialEq for RangeRejected
impl PartialEq for RangeRejected
impl StructuralPartialEq for RangeRejected
Auto Trait Implementations§
impl Forget for RangeRejected
impl Freeze for RangeRejected
impl RefUnwindSafe for RangeRejected
impl Send for RangeRejected
impl Sync for RangeRejected
impl Unpin for RangeRejected
impl UnsafeUnpin for RangeRejected
impl UnwindSafe for RangeRejected
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