pub enum StreamKind {
Control,
Request,
Tunnel,
}Expand description
Which of this server’s streams a decoder is reading.
RFC 9114 states most of its frame rules as “on any other stream” or “once
the CONNECT method has completed”, so the same frame type is ordinary on one
stream and a connection error on the next. This is what a decoder knows about
which of the three it is serving, and the module-private misplaced is the
whole of the rule.
Public for the reason FrameDecoder is.
Variants§
Control
The peer’s control stream (RFC 9114 §6.2.1).
Every frame type this server parses may legitimately arrive here, so
nothing is refused by type alone: which of them is allowed when –
a second SETTINGS, a CANCEL_PUSH, a HEADERS – depends on what has
already been seen, which is super::connection’s to track.
Request
A request stream whose request has not completed.
Tunnel
A request stream whose CONNECT has completed (RFC 9114 §4.4).
Trait Implementations§
Source§impl Clone for StreamKind
impl Clone for StreamKind
Source§fn clone(&self) -> StreamKind
fn clone(&self) -> StreamKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StreamKind
Source§impl Debug for StreamKind
impl Debug for StreamKind
impl Eq for StreamKind
Source§impl PartialEq for StreamKind
impl PartialEq for StreamKind
Source§fn eq(&self, other: &StreamKind) -> bool
fn eq(&self, other: &StreamKind) -> bool
self and other values to be equal, and is used by ==.