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 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§type Target = ContentRangeSpec
type Target = ContentRangeSpec
The resulting type after dereferencing.
source§fn deref(&self) -> &ContentRangeSpec
fn deref(&self) -> &ContentRangeSpec
Dereferences the value.
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
§impl From<ContentRange> for Header<'static>
impl From<ContentRange> for Header<'static>
§fn from(header: ContentRange) -> Header<'static>
fn from(header: ContentRange) -> Header<'static>
Converts to this type from the input type.
source§impl Header for ContentRange
impl Header for ContentRange
source§fn header_name() -> &'static str
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
source§fn parse_header(raw: &[Vec<u8>]) -> Result<ContentRange, Error>
fn parse_header(raw: &[Vec<u8>]) -> Result<ContentRange, Error>
Parse a header from a raw stream of bytes. Read more
source§impl HeaderFormat for ContentRange
impl HeaderFormat for ContentRange
source§impl PartialEq for ContentRange
impl PartialEq 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)