pub enum Http3PeerUniStreamError {
InvalidPeerUnidirectionalStream {
stream_id: Http3StreamId,
},
DuplicateCriticalStream {
kind: Http3CriticalUniStreamKind,
existing: Http3StreamId,
received: Http3StreamId,
},
ClientInitiatedPushStream {
stream_id: Http3StreamId,
push_id: Http3PushId,
},
ClosedCriticalStream {
kind: Http3CriticalUniStreamKind,
stream_id: Http3StreamId,
},
}Expand description
Failure while registering or closing a peer HTTP/3 unidirectional stream.
Self::InvalidPeerUnidirectionalStream is a local integration error. The remaining
variants are peer-caused HTTP/3 connection errors.
Variants§
InvalidPeerUnidirectionalStream
The supplied stream ID is not a valid peer-initiated unidirectional QUIC stream ID.
Fields
stream_id: Http3StreamIdInvalid raw QUIC stream identifier.
DuplicateCriticalStream
The peer opened a second stream for a required unique critical-stream kind.
Fields
kind: Http3CriticalUniStreamKindDuplicated critical-stream kind.
existing: Http3StreamIdPreviously registered peer stream identifier.
received: Http3StreamIdNewly received duplicate peer stream identifier.
ClientInitiatedPushStream
A client opened a server-only push stream.
Fields
stream_id: Http3StreamIdClient-initiated QUIC stream identifier.
push_id: Http3PushIdPush ID carried by the invalid stream header.
ClosedCriticalStream
A peer closed or reset a registered critical stream.
Fields
kind: Http3CriticalUniStreamKindClosed critical-stream kind.
stream_id: Http3StreamIdClosed peer stream identifier.
Implementations§
Source§impl Http3PeerUniStreamError
impl Http3PeerUniStreamError
Sourcepub const fn error_code(self) -> Option<Http3ErrorCode>
pub const fn error_code(self) -> Option<Http3ErrorCode>
Returns the HTTP/3 application error code for a peer-caused failure.
Trait Implementations§
Source§impl Clone for Http3PeerUniStreamError
impl Clone for Http3PeerUniStreamError
impl Copy for Http3PeerUniStreamError
Source§impl Debug for Http3PeerUniStreamError
impl Debug for Http3PeerUniStreamError
Source§impl Display for Http3PeerUniStreamError
impl Display for Http3PeerUniStreamError
impl Eq for Http3PeerUniStreamError
Source§impl Error for Http3PeerUniStreamError
impl Error for Http3PeerUniStreamError
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()