Enum lychee_lib::AcceptRangeError
source · pub enum AcceptRangeError {
NoRangePattern,
ParseIntError(ParseIntError),
InvalidRangeIndices,
}Expand description
The [AcceptRangeParseError] indicates that the parsing process of an
AcceptRange from a string failed due to various underlying reasons.
Variants§
NoRangePattern
The string input didn’t contain any range pattern.
ParseIntError(ParseIntError)
The start or end index could not be parsed as an integer.
InvalidRangeIndices
The start index is larger than the end index.
Trait Implementations§
source§impl Debug for AcceptRangeError
impl Debug for AcceptRangeError
source§impl Display for AcceptRangeError
impl Display for AcceptRangeError
source§impl Error for AcceptRangeError
impl Error for AcceptRangeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseIntError> for AcceptRangeError
impl From<ParseIntError> for AcceptRangeError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq for AcceptRangeError
impl PartialEq for AcceptRangeError
source§fn eq(&self, other: &AcceptRangeError) -> bool
fn eq(&self, other: &AcceptRangeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AcceptRangeError
Auto Trait Implementations§
impl RefUnwindSafe for AcceptRangeError
impl Send for AcceptRangeError
impl Sync for AcceptRangeError
impl Unpin for AcceptRangeError
impl UnwindSafe for AcceptRangeError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.