#[non_exhaustive]pub enum FrameDecodeError {
BufferTooShort,
UnknownFrameType(u64),
InvalidLength,
InvalidSetting(SettingError),
Http2Frame(VarInt),
ServerPushNotSupported(VarInt),
}Expand description
フレームデコードエラー
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.
BufferTooShort
バッファ不足
UnknownFrameType(u64)
不明なフレームタイプ
InvalidLength
無効なフレーム長
InvalidSetting(SettingError)
SETTINGS パラメータの構築時検査でエラーが発生した
内部に SettingError を保持し、ID / 値 / 重複の詳細を伝える
(RFC 9114 §7.2.4 / §7.2.4.1)。
Http2Frame(VarInt)
HTTP/2 専用フレームの検出
ServerPushNotSupported(VarInt)
サーバープッシュはサポートしない (CANCEL_PUSH, PUSH_PROMISE, MAX_PUSH_ID)
Trait Implementations§
Source§impl Clone for FrameDecodeError
impl Clone for FrameDecodeError
Source§fn clone(&self) -> FrameDecodeError
fn clone(&self) -> FrameDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameDecodeError
Source§impl Debug for FrameDecodeError
impl Debug for FrameDecodeError
Source§impl Display for FrameDecodeError
impl Display for FrameDecodeError
impl Eq for FrameDecodeError
Source§impl Error for FrameDecodeError
impl Error for FrameDecodeError
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()
Source§impl From<FrameDecodeError> for Error
impl From<FrameDecodeError> for Error
Source§fn from(e: FrameDecodeError) -> Self
fn from(e: FrameDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<SettingError> for FrameDecodeError
impl From<SettingError> for FrameDecodeError
Source§fn from(e: SettingError) -> Self
fn from(e: SettingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FrameDecodeError
impl PartialEq for FrameDecodeError
Source§fn eq(&self, other: &FrameDecodeError) -> bool
fn eq(&self, other: &FrameDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FrameDecodeError
Auto Trait Implementations§
impl Freeze for FrameDecodeError
impl RefUnwindSafe for FrameDecodeError
impl Send for FrameDecodeError
impl Sync for FrameDecodeError
impl Unpin for FrameDecodeError
impl UnsafeUnpin for FrameDecodeError
impl UnwindSafe for FrameDecodeError
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