pub enum ClientError {
InvalidStatusLine,
InvalidHeader(String),
HeaderTooLarge,
BodyTooLarge,
InvalidChunked(String),
ProtocolInconsistency(String),
Truncated,
}Expand description
代理客户端错误
Variants§
InvalidStatusLine
状态行格式非法
InvalidHeader(String)
头部格式非法
HeaderTooLarge
头区超过 64 KiB 上限
BodyTooLarge
body 超过上限
InvalidChunked(String)
chunked 编码错误
ProtocolInconsistency(String)
协议不一致(CL/TE 共存、多个不同 CL 等,请求走私前兆)
Truncated
响应不完整(EOF 先于完整响应到达,截断响应 fail-closed)
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
1.30.0 · 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 Freeze for ClientError
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
impl UnwindSafe for ClientError
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