pub enum ContentRangeParseError {
Malformed,
Reversed,
}Expand description
Error returned when a Content-Range header cannot be parsed.
Variants§
Malformed
The string did not match the expected <start>-<end> form.
Reversed
<start> was greater than <end>.
Trait Implementations§
Source§impl Clone for ContentRangeParseError
impl Clone for ContentRangeParseError
Source§fn clone(&self) -> ContentRangeParseError
fn clone(&self) -> ContentRangeParseError
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 Debug for ContentRangeParseError
impl Debug for ContentRangeParseError
Source§impl Display for ContentRangeParseError
impl Display for ContentRangeParseError
Source§impl Error for ContentRangeParseError
impl Error for ContentRangeParseError
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 ContentRangeParseError
impl PartialEq for ContentRangeParseError
impl Copy for ContentRangeParseError
impl Eq for ContentRangeParseError
impl StructuralPartialEq for ContentRangeParseError
Auto Trait Implementations§
impl Freeze for ContentRangeParseError
impl RefUnwindSafe for ContentRangeParseError
impl Send for ContentRangeParseError
impl Sync for ContentRangeParseError
impl Unpin for ContentRangeParseError
impl UnsafeUnpin for ContentRangeParseError
impl UnwindSafe for ContentRangeParseError
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