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.
Protocol(ProtocolViolation)
The stage broke the protocol.
Input(InputError)
Fallible input allocation or address admission failed.