Enum edge::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<(), Error>

impl FromStr for ByteRangeSpec

type Err = Error

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

Derived Implementations

impl Debug for ByteRangeSpec

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

impl Clone for ByteRangeSpec

fn clone(&self) -> ByteRangeSpec

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

impl PartialEq<ByteRangeSpec> for ByteRangeSpec

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

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