pub enum ParseHttpRangeOrContentRangeError {
Malformed,
ContainsNonVisibleASCII,
Empty,
InvalidUnit,
MalformedRange,
UnorderedRange(InvalidOrderedRange),
InvalidRangePiece(InvalidHttpU64),
InvalidSize(InvalidHttpU64),
}Expand description
The Errors that may occur during HttpContentRange and HttpRange parsing.
Variants§
Malformed
ContainsNonVisibleASCII
Empty
InvalidUnit
MalformedRange
UnorderedRange(InvalidOrderedRange)
InvalidRangePiece(InvalidHttpU64)
InvalidSize(InvalidHttpU64)
Trait Implementations§
Source§impl Clone for ParseHttpRangeOrContentRangeError
impl Clone for ParseHttpRangeOrContentRangeError
Source§fn clone(&self) -> ParseHttpRangeOrContentRangeError
fn clone(&self) -> ParseHttpRangeOrContentRangeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Error for ParseHttpRangeOrContentRangeError
impl Error for ParseHttpRangeOrContentRangeError
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<InvalidOrderedRange> for ParseHttpRangeOrContentRangeError
impl From<InvalidOrderedRange> for ParseHttpRangeOrContentRangeError
Source§fn from(source: InvalidOrderedRange) -> Self
fn from(source: InvalidOrderedRange) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for ParseHttpRangeOrContentRangeError
Available on crate feature axum only.
impl IntoResponse for ParseHttpRangeOrContentRangeError
Available on crate feature
axum only.Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Source§impl PartialEq for ParseHttpRangeOrContentRangeError
impl PartialEq for ParseHttpRangeOrContentRangeError
Source§fn eq(&self, other: &ParseHttpRangeOrContentRangeError) -> bool
fn eq(&self, other: &ParseHttpRangeOrContentRangeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ParseHttpRangeOrContentRangeError
impl StructuralPartialEq for ParseHttpRangeOrContentRangeError
Auto Trait Implementations§
impl Freeze for ParseHttpRangeOrContentRangeError
impl RefUnwindSafe for ParseHttpRangeOrContentRangeError
impl Send for ParseHttpRangeOrContentRangeError
impl Sync for ParseHttpRangeOrContentRangeError
impl Unpin for ParseHttpRangeOrContentRangeError
impl UnwindSafe for ParseHttpRangeOrContentRangeError
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