pub enum HttpContentRange {
Bound(Bound),
Unsatisfiable(Unsatisfiable),
}Expand description
A typed HTTP Content-Range header that only supports a single range.
Variants§
Bound(Bound)
Unsatisfiable(Unsatisfiable)
Implementations§
Source§impl HttpContentRange
impl HttpContentRange
Sourcepub fn matches_requested_range(&self, expected_range: HttpRange) -> bool
pub fn matches_requested_range(&self, expected_range: HttpRange) -> bool
Checks whether this Content-Range matches the expected HttpRange.
Trait Implementations§
Source§impl Clone for HttpContentRange
impl Clone for HttpContentRange
Source§fn clone(&self) -> HttpContentRange
fn clone(&self) -> HttpContentRange
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 HttpContentRange
impl Debug for HttpContentRange
Source§impl Display for HttpContentRange
impl Display for HttpContentRange
Source§impl From<&HttpContentRange> for HeaderValue
impl From<&HttpContentRange> for HeaderValue
Source§fn from(value: &HttpContentRange) -> Self
fn from(value: &HttpContentRange) -> Self
Converts to this type from the input type.
Source§impl FromStr for HttpContentRange
impl FromStr for HttpContentRange
Source§impl<S> OptionalFromRequestParts<S> for HttpContentRange
Available on crate feature axum only.
impl<S> OptionalFromRequestParts<S> for HttpContentRange
Available on crate feature
axum only.Source§impl PartialEq for HttpContentRange
impl PartialEq for HttpContentRange
Source§impl TryFrom<&HeaderValue> for HttpContentRange
impl TryFrom<&HeaderValue> for HttpContentRange
Source§type Error = ParseHttpRangeOrContentRangeError
type Error = ParseHttpRangeOrContentRangeError
The type returned in the event of a conversion error.
impl Copy for HttpContentRange
impl Eq for HttpContentRange
impl StructuralPartialEq for HttpContentRange
Auto Trait Implementations§
impl Freeze for HttpContentRange
impl RefUnwindSafe for HttpContentRange
impl Send for HttpContentRange
impl Sync for HttpContentRange
impl Unpin for HttpContentRange
impl UnwindSafe for HttpContentRange
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