pub enum Error {
Show 20 variants
Done,
BufferTooShort,
InternalError,
ExcessiveLoad,
IdError,
StreamCreationError,
ClosedCriticalStream,
MissingSettings,
FrameUnexpected,
FrameError,
QpackDecompressionFailed,
TransportError(Error),
StreamBlocked,
SettingsError,
RequestRejected,
RequestCancelled,
RequestIncomplete,
MessageError,
ConnectError,
VersionFallback,
}
Expand description
An HTTP/3 error.
Variants§
Done
There is no error or no work to do
BufferTooShort
The provided buffer is too short.
InternalError
Internal error in the HTTP/3 stack.
ExcessiveLoad
Endpoint detected that the peer is exhibiting behavior that causes. excessive load.
IdError
Stream ID or Push ID greater that current maximum was used incorrectly, such as exceeding a limit, reducing a limit, or being reused.
StreamCreationError
The endpoint detected that its peer created a stream that it will not accept.
ClosedCriticalStream
A required critical stream was closed.
MissingSettings
No SETTINGS frame at beginning of control stream.
FrameUnexpected
A frame was received which is not permitted in the current state.
FrameError
Frame violated layout or size rules.
QpackDecompressionFailed
QPACK Header block decompression failure.
TransportError(Error)
Error originated from the transport layer.
StreamBlocked
The underlying QUIC stream (or connection) doesn’t have enough capacity for the operation to complete. The application should retry later on.
SettingsError
Error in the payload of a SETTINGS frame.
RequestRejected
Server rejected request.
RequestCancelled
Request or its response cancelled.
RequestIncomplete
Client’s request stream terminated without containing a full-formed request.
MessageError
An HTTP message was malformed and cannot be processed.
ConnectError
The TCP connection established in response to a CONNECT request was reset or abnormally closed.
VersionFallback
The requested operation cannot be served over HTTP/3. Peer should retry over HTTP/1.1.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BufferTooShortError> for Error
impl From<BufferTooShortError> for Error
Source§fn from(_err: BufferTooShortError) -> Self
fn from(_err: BufferTooShortError) -> Self
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more