pub enum SettingError {
EnablePushNotBoolean {
value: u32,
},
InitialWindowSizeOutOfRange {
value: u32,
max: u32,
},
MaxFrameSizeOutOfRange {
value: u32,
min: u32,
max: u32,
},
EnableConnectProtocolNotBoolean {
value: u32,
},
NoRfc7540PrioritiesNotBoolean {
value: u32,
},
}Expand description
SETTINGS 値範囲検査エラー
Setting::from_wire / WindowSize::new / MaxFrameSize::new の戻り値で使用される。
Variants§
EnablePushNotBoolean
SETTINGS_ENABLE_PUSH が 0/1 以外
RFC 9113 §6.5.2: PROTOCOL_ERROR
InitialWindowSizeOutOfRange
SETTINGS_INITIAL_WINDOW_SIZE が 2^31-1 を超える
RFC 9113 §6.5.2: FLOW_CONTROL_ERROR
MaxFrameSizeOutOfRange
SETTINGS_MAX_FRAME_SIZE が範囲外
RFC 9113 §6.5.2: 16384..=16777215, 範囲外は PROTOCOL_ERROR
EnableConnectProtocolNotBoolean
SETTINGS_ENABLE_CONNECT_PROTOCOL が 0/1 以外
RFC 8441 §3
NoRfc7540PrioritiesNotBoolean
SETTINGS_NO_RFC7540_PRIORITIES が 0/1 以外
RFC 9218 §2.1
Trait Implementations§
Source§impl Clone for SettingError
impl Clone for SettingError
Source§fn clone(&self) -> SettingError
fn clone(&self) -> SettingError
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 SettingError
Source§impl Debug for SettingError
impl Debug for SettingError
Source§impl Display for SettingError
impl Display for SettingError
impl Eq for SettingError
Source§impl Error for SettingError
impl Error for SettingError
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()
Source§impl Hash for SettingError
impl Hash for SettingError
Source§impl PartialEq for SettingError
impl PartialEq for SettingError
Source§fn eq(&self, other: &SettingError) -> bool
fn eq(&self, other: &SettingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SettingError
Auto Trait Implementations§
impl Freeze for SettingError
impl RefUnwindSafe for SettingError
impl Send for SettingError
impl Sync for SettingError
impl Unpin for SettingError
impl UnsafeUnpin for SettingError
impl UnwindSafe for SettingError
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