pub enum StreamProgressError {
Show 17 variants
AttemptClosed,
BackpressurePending,
NoPendingChunk,
NoSinkObservation,
SinkObservationPending,
NoSourceObservation,
SourceObservationPending,
InvalidSinkProgress,
ChunkTooLarge,
ChunkLimitExceeded,
ObservationLimitExceeded,
ByteLimitExceeded,
DeclaredLengthExceeded,
DeclaredLengthMismatch,
UnexpectedEventEnd,
ZeroProgressLimitExceeded,
ArithmeticOverflow,
}Expand description
Stream accounting or lifecycle failure.
Variants§
AttemptClosed
The attempt already completed or failed.
BackpressurePending
A new source chunk was offered before the prior chunk was consumed.
NoPendingChunk
A sink advance was reported without pending bytes.
NoSinkObservation
Sink progress was reported without a preflight sink observation.
SinkObservationPending
A second sink observation was started before classifying the first.
NoSourceObservation
A source result was reported without a preflight observation.
SourceObservationPending
A second source observation was started before classifying the first.
InvalidSinkProgress
A sink claimed to accept more than the pending chunk remainder.
ChunkTooLarge
One chunk exceeds the per-operation chunk-size limit.
ChunkLimitExceeded
The stream exceeded its chunk budget.
ObservationLimitExceeded
The stream exceeded its observation budget.
ByteLimitExceeded
Actual or offered bytes exceed the operation limit.
DeclaredLengthExceeded
Offered bytes exceed the declared wire length.
DeclaredLengthMismatch
End-of-stream actual bytes differ from the declared length.
UnexpectedEventEnd
Caller-cancelled event streams cannot end as finite streams.
ZeroProgressLimitExceeded
Consecutive observations made no progress beyond policy tolerance.
ArithmeticOverflow
Counter arithmetic or platform length conversion overflowed.
Trait Implementations§
Source§impl Clone for StreamProgressError
impl Clone for StreamProgressError
Source§fn clone(&self) -> StreamProgressError
fn clone(&self) -> StreamProgressError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StreamProgressError
Source§impl Debug for StreamProgressError
impl Debug for StreamProgressError
Source§impl Display for StreamProgressError
impl Display for StreamProgressError
impl Eq for StreamProgressError
Source§impl Error for StreamProgressError
impl Error for StreamProgressError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()