pub struct ContentRange(pub ContentRangeSpec);
Expand description
Content-Range
header, defined in
RFC7233
Tuple Fields§
§0: ContentRangeSpec
Trait 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 DerefMut for ContentRange
impl DerefMut for ContentRange
Source§fn deref_mut(&mut self) -> &mut ContentRangeSpec
fn deref_mut(&mut self) -> &mut ContentRangeSpec
Mutably dereferences the value.
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<T>(msg: &T) -> Result<Self, ParseError>where
T: HttpMessage,
fn parse<T>(msg: &T) -> Result<Self, ParseError>where
T: HttpMessage,
Parse a header
Source§impl IntoHeaderValue for ContentRange
impl IntoHeaderValue for ContentRange
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Source§impl PartialEq for ContentRange
impl PartialEq for ContentRange
Source§impl Deref for ContentRange
impl Deref for ContentRange
Source§type Target = ContentRangeSpec
type Target = ContentRangeSpec
The resulting type after dereferencing.
Source§fn deref(&self) -> &ContentRangeSpec
fn deref(&self) -> &ContentRangeSpec
Dereferences the value.
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more