pub struct TransportError {
pub status: Option<u16>,
pub message: Option<String>,
pub request_id: Option<String>,
pub body_snippet: Option<String>,
pub retry_after: Option<Duration>,
pub retryable: bool,
pub code: &'static str,
pub method: Option<String>,
pub uri: Option<String>,
pub timeout_phase: Option<&'static str>,
pub transport_kind: Option<&'static str>,
}Expand description
SDK error type and helpers. Structured transport error context.
Fields§
§status: Option<u16>Optional HTTP status code if available.
message: Option<String>Optional short message from client/runtime.
request_id: Option<String>Optional request identifier from upstream.
body_snippet: Option<String>Optional redacted response body snippet.
retry_after: Option<Duration>Optional retry-after hint from upstream.
retryable: boolWhether the error is likely retryable.
code: &'static strStable transport error code derived from reqx.
method: Option<String>Optional HTTP method for the failed request.
uri: Option<String>Optional redacted request URI/path for the failed request.
timeout_phase: Option<&'static str>Optional timeout phase when the transport failed due to timeout.
transport_kind: Option<&'static str>Optional lower-level transport kind when available.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§fn clone(&self) -> TransportError
fn clone(&self) -> TransportError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
Source§impl PartialEq for TransportError
impl PartialEq for TransportError
impl Eq for TransportError
impl StructuralPartialEq for TransportError
Auto Trait Implementations§
impl Freeze for TransportError
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnsafeUnpin for TransportError
impl UnwindSafe for TransportError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.