#[non_exhaustive]pub enum RangeUnsatisfiableError {
Invalid(RangeInvalid),
Rejected(RangeRejected),
Unsatisfiable,
}Expand description
A server MAY always ignore a range header https://www.rfc-editor.org/rfc/rfc9110.html#section-14.2-3 which means falling back to ignoring the range header is spec-compliant.
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.
Invalid(RangeInvalid)
Rejected(RangeRejected)
Unsatisfiable
Spec says this SHOULD be a 416 https://www.rfc-editor.org/rfc/rfc9110.html#section-14.2-13
Trait Implementations§
Source§impl Clone for RangeUnsatisfiableError
impl Clone for RangeUnsatisfiableError
impl Copy for RangeUnsatisfiableError
Source§impl Debug for RangeUnsatisfiableError
impl Debug for RangeUnsatisfiableError
Source§impl Display for RangeUnsatisfiableError
impl Display for RangeUnsatisfiableError
impl Eq for RangeUnsatisfiableError
Source§impl Error for RangeUnsatisfiableError
impl Error for RangeUnsatisfiableError
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 RangeUnsatisfiableError
impl PartialEq for RangeUnsatisfiableError
impl StructuralPartialEq for RangeUnsatisfiableError
Auto Trait Implementations§
impl Forget for RangeUnsatisfiableError
impl Freeze for RangeUnsatisfiableError
impl Move for RangeUnsatisfiableError
impl RefUnwindSafe for RangeUnsatisfiableError
impl Send for RangeUnsatisfiableError
impl Sync for RangeUnsatisfiableError
impl Unpin for RangeUnsatisfiableError
impl UnsafeUnpin for RangeUnsatisfiableError
impl UnwindSafe for RangeUnsatisfiableError
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