Skip to main content

PumpError

Type Alias PumpError 

Source
pub type PumpError<E> = PumpFailure<StepError<E>>;
Expand description

Failure of pump_read_to_sink: a PumpFailure whose stage error is the decoder’s StepError.

Aliased Type§

pub enum PumpError<E> {
    Step(StepError<E>),
    Io(Error),
    NeedsRandomAccess(InputRequest),
    WindowLimit {
        needed: usize,
        limit: usize,
    },
    Protocol(ProtocolViolation),
    Input(InputError),
}

Variants§

§

Step(StepError<E>)

The stage failed.

§

Io(Error)

Reading the stream failed.

§

NeedsRandomAccess(InputRequest)

The stage asked for bytes behind the stream position, or for the total length before the stream ended. A stream cannot serve either; wrap it in BufferedReadAt and use a ReadAtCursor.

§

WindowLimit

The stage needs more contiguous bytes than max_window allows.

Fields

§needed: usize

Bytes the stage asked for in one input.

§limit: usize

The configured limit.

§

Protocol(ProtocolViolation)

The stage broke the protocol.

§

Input(InputError)

Fallible input allocation or address admission failed.