Struct actix_web::http::header::ContentRange
source · pub struct ContentRange(pub ContentRangeSpec);
Expand description
Content-Range
header, defined
in RFC 7233 §4.2
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 copy 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<ContentRange> for ContentRange
impl PartialEq<ContentRange> for ContentRange
source§fn eq(&self, other: &ContentRange) -> bool
fn eq(&self, other: &ContentRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryIntoHeaderValue for ContentRange
impl TryIntoHeaderValue for ContentRange
§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 StructuralEq for ContentRange
impl StructuralPartialEq for ContentRange
Auto Trait Implementations§
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<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.