pub enum Error {
Show 14 variants
UnknownStream,
StreamReset,
StreamClosed,
HeadersAlreadySent,
HeadersNotSent,
InvalidHeader,
StreamLimit,
StreamIdsExhausted,
GoingAway,
ConnectionClosed,
WrongRole,
InvalidUpgradeSettings,
HeaderListTooLarge,
ConnectProtocolDisabled,
}Expand description
Errors from the sending API.
Variants§
UnknownStream
No such stream (never opened, or closed and forgotten).
StreamReset
The stream was reset.
StreamClosed
We already ended the stream.
HeadersAlreadySent
Final headers were already sent.
HeadersNotSent
Data or trailers before the headers.
InvalidHeader
A field name or value that HTTP/2 does not allow, or an invalid status.
StreamLimit
The peer’s SETTINGS_MAX_CONCURRENT_STREAMS is reached.
StreamIdsExhausted
No stream identifiers left: open a new connection.
GoingAway
The peer sent GOAWAY: no new streams.
ConnectionClosed
The connection is closed.
WrongRole
The call is for the other role (for example a client sending a response).
InvalidUpgradeSettings
An HTTP2-Settings value that is not valid base64url SETTINGS.
HeaderListTooLarge
The header block is larger than the peer’s SETTINGS_MAX_HEADER_LIST_SIZE; nothing was sent.
ConnectProtocolDisabled
An extended CONNECT before the server enabled it with SETTINGS_ENABLE_CONNECT_PROTOCOL (RFC 8441 §3); nothing was sent.
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · 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
use the Display impl or to_string()