pub enum RangesReadError {
Transport(Error),
Stalled,
Truncated,
}Expand description
Why reading a streamed /ranges response body failed. Public API surface
(re-exported from lib.rs) so the cross-crate integration test can
assert on the exact failure kind directly (via send_ranges), rather than
inspecting logs or metrics.
Variants§
Transport(Error)
Stalled
No data arrived on the response body for a full stall_timeout
window – the per-chunk bound pull_exact wraps around each
stream.next(), deliberately tighter than the client’s read_timeout
margin so this is the classification that actually fires on a real
stall. See “ClientBuilder::read_timeout on the one client”.
Truncated
The framed body ended before every declared frame was fully read: a protocol violation from our own cache, not a liveness signal.
Trait Implementations§
Source§impl Debug for RangesReadError
impl Debug for RangesReadError
Source§impl Display for RangesReadError
impl Display for RangesReadError
Source§impl Error for RangesReadError
impl Error for RangesReadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for RangesReadError
impl From<Error> for RangesReadError
Source§fn from(source: Error) -> RangesReadError
fn from(source: Error) -> RangesReadError
Converts to this type from the input type.
Source§impl From<RangesReadError> for RangesSendError
impl From<RangesReadError> for RangesSendError
Source§fn from(source: RangesReadError) -> RangesSendError
fn from(source: RangesReadError) -> RangesSendError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RangesReadError
impl !RefUnwindSafe for RangesReadError
impl Send for RangesReadError
impl Sync for RangesReadError
impl Unpin for RangesReadError
impl UnsafeUnpin for RangesReadError
impl !UnwindSafe for RangesReadError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].