Skip to main content

Request

Type Alias Request 

Source
pub type Request = InputRequest;
👎Deprecated:

use InputRequest

Expand description

Deprecated byte-input request name; use InputRequest.

Aliased Type§

pub enum Request {
    AtLeast {
        offset: u64,
        min_len: usize,
    },
    Range(ByteRange),
    Len,
}

Variants§

§

AtLeast

Bytes from offset on: an input starting there with at least min_len bytes, or every remaining byte (with total_len set) when the source ends first. More is welcome. A sequential decoder asks this way; min_len is the contiguous span it needs to make progress without copying (one worst-case row, one marker segment).

Fields

§offset: u64

Absolute offset of the first byte needed.

§min_len: usize

Minimum contiguous bytes needed in one input.

§

Range(ByteRange)

Exactly this span.

§

Len

The total source length, supplied as Input::total_len.