pub enum Http2Error {
ShortFrameHeader,
ShortPayload,
FrameTooLarge {
got: u32,
max: u32,
},
UnknownFrameType(u8),
BadPreface,
InvalidState,
StreamIdZero,
StreamIdNonZero,
FlowControlExceeded,
Protocol(ErrorCode),
}Expand description
HTTP/2-layer error.
Variants§
ShortFrameHeader
Frame header too short (< 9 bytes).
ShortPayload
Payload too short for the frame type.
FrameTooLarge
Frame length exceeds MAX_FRAME_SIZE.
UnknownFrameType(u8)
Unknown/reserved frame type (Spec §4.1: SHOULD ignore).
BadPreface
Wrong connection preface.
InvalidState
Stream state does not allow this frame type.
StreamIdZero
Stream id 0 where stream != 0 is required.
StreamIdNonZero
Stream id != 0 where stream == 0 is required (e.g. SETTINGS).
FlowControlExceeded
Flow-control window underrun.
Protocol(ErrorCode)
Generic protocol error with code.
Trait Implementations§
Source§impl Clone for Http2Error
impl Clone for Http2Error
Source§fn clone(&self) -> Http2Error
fn clone(&self) -> Http2Error
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 moreSource§impl Debug for Http2Error
impl Debug for Http2Error
Source§impl Display for Http2Error
impl Display for Http2Error
impl Eq for Http2Error
Source§impl Error for Http2Error
Available on crate feature std only.
impl Error for Http2Error
Available on crate feature
std only.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 PartialEq for Http2Error
impl PartialEq for Http2Error
Source§fn eq(&self, other: &Http2Error) -> bool
fn eq(&self, other: &Http2Error) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Http2Error
Auto Trait Implementations§
impl Freeze for Http2Error
impl RefUnwindSafe for Http2Error
impl Send for Http2Error
impl Sync for Http2Error
impl Unpin for Http2Error
impl UnsafeUnpin for Http2Error
impl UnwindSafe for Http2Error
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