Enum reqwest::header::RangeUnit [] [src]

pub enum RangeUnit {
    Bytes,
    None,
    Unregistered(String),
}

Range Units, described in RFC7233

A representation can be partitioned into subranges according to various structural units, depending on the structure inherent in the representation's media type.

ABNF

range-unit       = bytes-unit / other-range-unit
bytes-unit       = "bytes"
other-range-unit = token

Variants

Indicating byte-range requests are supported.

Reserved as keyword, indicating no ranges are supported.

The given range unit is not registered at IANA.

Trait Implementations

impl FromStr for RangeUnit
[src]

impl Display for RangeUnit
[src]

Formats the value using the given formatter. Read more

impl Clone for RangeUnit
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq<RangeUnit> for RangeUnit
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for RangeUnit
[src]

Formats the value using the given formatter.

impl Eq for RangeUnit
[src]