pub enum RequestError {
Rejected(String),
TooLarge(usize),
InvalidSize(u32),
UnexpectedType(u32),
Malformed(DecodeError),
Io(Error),
}Expand description
Connection::request などが失敗した理由。
Variants§
Rejected(String)
こちらの証明書が TLS のアラートで弾かれた。中身はアラートの種類
TooLarge(usize)
要求か応答の本体が大きすぎる
InvalidSize(u32)
応答のヘッダーの全長が、ヘッダーより短い
UnexpectedType(u32)
要求と違う種類の応答が来た
Malformed(DecodeError)
heika だけのパケットの中身が決まりに合わない
Io(Error)
Trait Implementations§
Source§impl Debug for RequestError
impl Debug for RequestError
Source§impl Display for RequestError
impl Display for RequestError
Source§impl Error for RequestError
impl Error for RequestError
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 !RefUnwindSafe for RequestError
impl !UnwindSafe for RequestError
impl Freeze for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnsafeUnpin for RequestError
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