Enum hyper::header::ByteRangeSpec [] [src]

pub enum ByteRangeSpec {
    FromTo(u64, u64),
    AllFrom(u64),
    Last(u64),
}

Each Range::Bytes header can contain one or more ByteRangeSpecs. Each ByteRangeSpec defines a range of bytes to fetch

Variants

FromTo

Get all bytes between x and y ("x-y")

AllFrom

Get all bytes starting from x ("x-")

Last

Get last x bytes ("-x")

Trait Implementations

impl Display for ByteRangeSpec

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

impl FromStr for ByteRangeSpec

type Err = Error

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

Derived Implementations

impl Debug for ByteRangeSpec

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

impl Clone for ByteRangeSpec

fn clone(&self) -> ByteRangeSpec

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

impl PartialEq for ByteRangeSpec

fn eq(&self, arg_0: &ByteRangeSpec) -> bool

fn ne(&self, arg_0: &ByteRangeSpec) -> bool