pub struct ContentRange(pub ContentRangeSpec);Expand description
Content-Range header, defined
in RFC 7233 §4.2
Tuple Fields§
§0: ContentRangeSpecTrait Implementations§
Source§impl Clone for ContentRange
 
impl Clone for ContentRange
Source§fn clone(&self) -> ContentRange
 
fn clone(&self) -> ContentRange
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 ContentRange
 
impl Debug for ContentRange
Source§impl Deref for ContentRange
 
impl Deref for ContentRange
Source§impl DerefMut for ContentRange
 
impl DerefMut for ContentRange
Source§impl Display for ContentRange
 
impl Display for ContentRange
Source§impl Header for ContentRange
 
impl Header for ContentRange
Source§fn name() -> HeaderName
 
fn name() -> HeaderName
Returns the name of the header field.
Source§fn parse<M: HttpMessage>(msg: &M) -> Result<Self, ParseError>
 
fn parse<M: HttpMessage>(msg: &M) -> Result<Self, ParseError>
Parse the header from a HTTP message.
Source§impl PartialEq for ContentRange
 
impl PartialEq for ContentRange
Source§impl TryIntoHeaderValue for ContentRange
 
impl TryIntoHeaderValue for ContentRange
Source§type Error = InvalidHeaderValue
 
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Source§fn try_into_value(self) -> Result<HeaderValue, Self::Error>
 
fn try_into_value(self) -> Result<HeaderValue, Self::Error>
Try to convert value to a HeaderValue.
impl Eq for ContentRange
impl StructuralPartialEq for ContentRange
Auto Trait Implementations§
impl Freeze for ContentRange
impl RefUnwindSafe for ContentRange
impl Send for ContentRange
impl Sync for ContentRange
impl Unpin for ContentRange
impl UnwindSafe for ContentRange
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.