pub struct ErrorSample {
pub status: u16,
pub server_header: Option<String>,
pub body_excerpt: String,
}Expand description
One captured non-2xx response — used to surface who sent the error (mockforge? a proxy in front?) and why. Critical for diagnosing “I see 503 from the bench but the server log shows 200” — almost always an upstream proxy timing out on a slow chunked upload.
Fields§
§status: u16§server_header: Option<String>Server response header, when present. Often reveals the
proxy: nginx/1.21.0, cloudflare, envoy, awselb/2.0, etc.
body_excerpt: StringFirst N bytes of the response body, lossy-UTF8’d. Trimmed.
Trait Implementations§
Source§impl Clone for ErrorSample
impl Clone for ErrorSample
Source§fn clone(&self) -> ErrorSample
fn clone(&self) -> ErrorSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ErrorSample
impl RefUnwindSafe for ErrorSample
impl Send for ErrorSample
impl Sync for ErrorSample
impl Unpin for ErrorSample
impl UnsafeUnpin for ErrorSample
impl UnwindSafe for ErrorSample
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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