Enum iron::headers::ByteRangeSpec [] [src]

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

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

Variants

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

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

Get last x bytes ("-x")

Trait Implementations

impl Debug for ByteRangeSpec

Formats the value using the given formatter.

impl Clone for ByteRangeSpec

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq<ByteRangeSpec> for ByteRangeSpec

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

This method tests for !=.

impl Display for ByteRangeSpec

Formats the value using the given formatter.

impl FromStr for ByteRangeSpec