pub enum TransportError {
Show 14 variants
TargetRejected,
MissingContentType,
HeaderRejected,
RequestBodyAllocationFailed,
RequestBodyTooLarge,
ResponseBodyAllocationFailed,
ConnectFailed,
TimedOut,
RequestFailed,
InvalidStatus,
InvalidRateLimitHeaders,
ResponseTooLarge,
ResponseReadFailed,
ResponseOriginChanged,
}Expand description
Payload-free transport failure.
Variants§
TargetRejected
The target could not be composed without parsing or normalization.
MissingContentType
A non-empty body omitted its required explicit content type.
HeaderRejected
A validated header could not be represented by the HTTP implementation.
RequestBodyAllocationFailed
Adapter-owned request-body allocation failed.
RequestBodyTooLarge
The request body length cannot be represented by the HTTP client.
ResponseBodyAllocationFailed
Adapter-owned response-body allocation failed.
ConnectFailed
Connection establishment failed.
TimedOut
The configured request or read deadline expired.
RequestFailed
Sending failed for another payload-free reason.
InvalidStatus
The response status is outside the core SDK’s admitted HTTP range.
InvalidRateLimitHeaders
Rate-limit response headers were incomplete, non-decimal, or incoherent.
ResponseTooLarge
The declared or observed response body exceeds the caller buffer.
ResponseReadFailed
Reading the response body failed.
ResponseOriginChanged
The final response origin differed from the configured endpoint.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§fn clone(&self) -> TransportError
fn clone(&self) -> TransportError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more