pub enum H3NativeError {
UnexpectedEof,
InvalidFrame(&'static str),
FrameTooLarge {
payload_size: usize,
max_size: usize,
},
DuplicateSetting(u64),
InvalidSettingValue(u64),
ControlProtocol(&'static str),
StreamProtocol(&'static str),
QpackPolicy(&'static str),
InvalidRequestPseudoHeader(&'static str),
InvalidResponsePseudoHeader(&'static str),
ConcurrentStreamLimitExceeded {
active: u64,
limit: u64,
},
}Expand description
HTTP/3 errors.
Variants§
UnexpectedEof
Input buffer ended unexpectedly.
InvalidFrame(&'static str)
Malformed frame.
FrameTooLarge
Frame payload exceeds maximum allowed size.
Fields
DuplicateSetting(u64)
Duplicate setting key.
InvalidSettingValue(u64)
Invalid setting value.
ControlProtocol(&'static str)
Control stream protocol violation.
StreamProtocol(&'static str)
Unidirectional stream protocol violation.
QpackPolicy(&'static str)
QPACK policy mismatch for this connection.
InvalidRequestPseudoHeader(&'static str)
Invalid request pseudo headers.
InvalidResponsePseudoHeader(&'static str)
Invalid response pseudo headers.
ConcurrentStreamLimitExceeded
New request stream rejected because peer-advertised concurrency cap is full.
Per RFC 9114 §5.1.2, an HTTP/3 endpoint MUST respect the QUIC
initial_max_streams_bidi / MAX_STREAMS limits. The local state machine
returns this error when a frame arrives for a previously-unseen
request-stream id while active_request_stream_count >= max.
Trait Implementations§
Source§impl Clone for H3NativeError
impl Clone for H3NativeError
Source§fn clone(&self) -> H3NativeError
fn clone(&self) -> H3NativeError
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 H3NativeError
impl Debug for H3NativeError
Source§impl Display for H3NativeError
impl Display for H3NativeError
impl Eq for H3NativeError
Source§impl Error for H3NativeError
impl Error for H3NativeError
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 H3NativeError
impl PartialEq for H3NativeError
impl StructuralPartialEq for H3NativeError
Auto Trait Implementations§
impl Freeze for H3NativeError
impl RefUnwindSafe for H3NativeError
impl Send for H3NativeError
impl Sync for H3NativeError
impl Unpin for H3NativeError
impl UnsafeUnpin for H3NativeError
impl UnwindSafe for H3NativeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).