Enum hyper::header::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 PartialEq for ByteRangeSpec
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for ByteRangeSpec
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ByteRangeSpec
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for ByteRangeSpec
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for ByteRangeSpec
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more