pub enum HttpProxyError {
ParseStringToInteger(ParseIntError),
ParseContentLengthFromHeader(ToStrError),
LocalRequest(Error),
RemoteRequest(ConnectionError),
BuildTokioRuntime(Error),
BuildHttpRequest(Error),
ReadResponseBody(Error),
Transport(Error),
CopyBuffer(Error),
InvalidPath,
ConstructHeader(String),
}Variants§
ParseStringToInteger(ParseIntError)
Failed to parse string to integer.
ParseContentLengthFromHeader(ToStrError)
LocalRequest(Error)
Failed to get response from the local http server.
RemoteRequest(ConnectionError)
Failed to get response from the remote http server.
BuildTokioRuntime(Error)
Failed to build the tokio runtime.
BuildHttpRequest(Error)
Failed to build local http request.
ReadResponseBody(Error)
Failed to read the response body.
Transport(Error)
Failed to transport the remote response body.
CopyBuffer(Error)
Failed to copy the buffer.
InvalidPath
Invalid path.
ConstructHeader(String)
Failed to build request header.
Trait Implementations§
Source§impl Debug for HttpProxyError
impl Debug for HttpProxyError
Source§impl Display for HttpProxyError
impl Display for HttpProxyError
Source§impl From<HttpProxyError> for BackendError
impl From<HttpProxyError> for BackendError
Source§fn from(error: HttpProxyError) -> Self
fn from(error: HttpProxyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HttpProxyError
impl !RefUnwindSafe for HttpProxyError
impl Send for HttpProxyError
impl Sync for HttpProxyError
impl Unpin for HttpProxyError
impl UnsafeUnpin for HttpProxyError
impl !UnwindSafe for HttpProxyError
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> 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.