#[repr(u32)]pub enum Reason {
Show 14 variants
NoError = 0,
ProtocolError = 1,
InternalError = 2,
FlowControlError = 3,
SettingsTimeout = 4,
StreamClosed = 5,
FrameSizeError = 6,
RefusedStream = 7,
Cancel = 8,
CompressionError = 9,
ConnectError = 10,
EnhanceYourCalm = 11,
InadequateSecurity = 12,
Http11Required = 13,
}Available on crate feature
h2 only.Expand description
HTTP/2 error codes (RFC 9113 Section 7).
Variants§
NoError = 0
ProtocolError = 1
InternalError = 2
FlowControlError = 3
SettingsTimeout = 4
StreamClosed = 5
FrameSizeError = 6
RefusedStream = 7
Cancel = 8
CompressionError = 9
ConnectError = 10
EnhanceYourCalm = 11
InadequateSecurity = 12
Http11Required = 13
Implementations§
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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