pub enum Range {
Bytes(Vec<ByteRangeSpec>),
Unregistered(String, String),
}
Available on crate feature
file
only.Expand description
Range
header, defined in RFC7233
The “Range” header field on a GET request modifies the method semantics to request transfer of only one or more subranges of the selected representation data, rather than the entire selected representation data.
Variants§
Bytes(Vec<ByteRangeSpec>)
Byte range
Unregistered(String, String)
Custom range, with unit not registered at IANA
(other-range-unit
: String , other-range-set
: String)
Trait Implementations§
source§impl PartialEq<Range> for Range
impl PartialEq<Range> for Range
impl Eq for Range
impl StructuralEq for Range
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.