pub enum Http2Error {
ShortFrameHeader,
ShortPayload,
FrameTooLarge {
got: u32,
max: u32,
},
UnknownFrameType(u8),
BadPreface,
InvalidState,
StreamIdZero,
StreamIdNonZero,
FlowControlExceeded,
Protocol(ErrorCode),
}Expand description
HTTP/2-Layer-Fehler.
Variants§
ShortFrameHeader
Frame-Header zu kurz (< 9 Bytes).
ShortPayload
Payload zu kurz fuer den Frame-Type.
FrameTooLarge
Frame-Length ueberschreitet MAX_FRAME_SIZE.
UnknownFrameType(u8)
Unbekannter/Reserved Frame-Type (Spec §4.1: SHOULD ignore).
BadPreface
Falscher Connection-Preface.
InvalidState
Stream-State erlaubt diesen Frame-Type nicht.
StreamIdZero
Stream-Id 0, wo Stream != 0 erforderlich.
StreamIdNonZero
Stream-Id != 0, wo Stream == 0 erforderlich (z.B. SETTINGS).
FlowControlExceeded
Flow-Control-Window-Underrun.
Protocol(ErrorCode)
Generic Protocol-Error mit 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
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 Eq for Http2Error
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