pub enum HttpRange {
StartingPoint(u64),
Range(OrderedRange),
Suffix(u64),
}Expand description
A typed HTTP Range header that only supports a single range.
Variants§
Trait Implementations§
Source§impl From<&HttpRange> for HeaderValue
impl From<&HttpRange> for HeaderValue
Source§impl<S> OptionalFromRequestParts<S> for HttpRange
Available on crate feature axum only.
impl<S> OptionalFromRequestParts<S> for HttpRange
Available on crate feature
axum only.Source§impl TryFrom<&HeaderValue> for HttpRange
impl TryFrom<&HeaderValue> for HttpRange
Source§type Error = ParseHttpRangeOrContentRangeError
type Error = ParseHttpRangeOrContentRangeError
The type returned in the event of a conversion error.
impl Copy for HttpRange
impl Eq for HttpRange
impl StructuralPartialEq for HttpRange
Auto Trait Implementations§
impl Freeze for HttpRange
impl RefUnwindSafe for HttpRange
impl Send for HttpRange
impl Sync for HttpRange
impl Unpin for HttpRange
impl UnwindSafe for HttpRange
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