Enum hyper::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

Bytes

Indicating byte-range requests are supported.

None

Reserved as keyword, indicating no ranges are supported.

Unregistered

The given range unit is not registered at IANA.

Trait Implementations

impl FromStr for RangeUnit

type Err = ()

fn from_str(s: &str) -> Result<Self, ()>

impl Display for RangeUnit

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for RangeUnit

fn eq(&self, __arg_0: &RangeUnit) -> bool

fn ne(&self, __arg_0: &RangeUnit) -> bool

impl Eq for RangeUnit

impl Debug for RangeUnit

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for RangeUnit

fn clone(&self) -> RangeUnit

fn clone_from(&mut self, source: &Self)