Struct ajars_actix_web::actix_web::http::header::ContentRange [−][src]
pub struct ContentRange(pub ContentRangeSpec);
Expand description
Content-Range
header, defined in
RFC7233
Tuple Fields
0: ContentRangeSpec
Trait Implementations
type Target = ContentRangeSpec
type Target = ContentRangeSpec
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Returns the name of the header field
Parse a header
type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Try to convert value to a HeaderValue.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> IntoHeaderPair for T where
T: Header,
impl<T> IntoHeaderPair for T where
T: Header,
type Error = <T as IntoHeaderValue>::Error
pub fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), <T as IntoHeaderPair>::Error>
type Output = T
type Output = T
Should always be Self