Struct iron::headers::ContentRange
[−]
[src]
pub struct ContentRange(pub ContentRangeSpec);
Content-Range
header, defined in
RFC7233
Trait Implementations
impl PartialEq<ContentRange> for ContentRange
fn eq(&self, __arg_0: &ContentRange) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ContentRange) -> bool
This method tests for !=
.
impl Debug for ContentRange
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for ContentRange
fn clone(&self) -> ContentRange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Deref for ContentRange
type Target = ContentRangeSpec
The resulting type after dereferencing
fn deref(&self) -> &ContentRangeSpec
The method called to dereference a value
impl DerefMut for ContentRange
fn deref_mut(&mut self) -> &mut ContentRangeSpec
impl Header for ContentRange
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &[Vec<u8>]) -> Result<ContentRange, Error>
Parse a header from a raw stream of bytes. Read more
impl HeaderFormat for ContentRange
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>
Format a header to be output into a TcpStream. Read more