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
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<BufferTooShortError> for Error
impl From<BufferTooShortError> for Error
sourcefn from(_err: BufferTooShortError) -> Self
fn from(_err: BufferTooShortError) -> Self
Converts to this type from the input type.
impl Copy for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more