#[non_exhaustive]pub enum HttpStackError {
Transport(BoxError),
Timeout {
phase: TimeoutPhase,
},
Config {
hint: String,
},
ProxyConnect {
hint: String,
},
}Expand description
HTTP stack-layer error.
Corresponds to the E in toac::CallError<E> — the provider translates this error
into ProviderErrorKind in call_error_to_provider (see HTTP retry/error semantics).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transport(BoxError)
Transport error (DNS, TCP, TLS, hyper I/O, etc.).
Timeout
Request timed out. phase indicates which stage timed out — currently only
supports Total.
Staged timeouts for HTTP requests.
Fields
§
phase: TimeoutPhaseConfig
HTTP layer configuration error (e.g., proxy URL parsing failure).
ProxyConnect
Proxy CONNECT phase failed.
Trait Implementations§
Source§impl Debug for HttpStackError
impl Debug for HttpStackError
Source§impl Display for HttpStackError
impl Display for HttpStackError
Source§impl Error for HttpStackError
impl Error for HttpStackError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for HttpStackError
impl !UnwindSafe for HttpStackError
impl Freeze for HttpStackError
impl Send for HttpStackError
impl Sync for HttpStackError
impl Unpin for HttpStackError
impl UnsafeUnpin for HttpStackError
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