pub enum StreamKind {
Subgroup,
Fetch,
Fill,
Datagram,
Request,
}Expand description
The kind of stream an event refers to.
Variants§
Subgroup
Subgroup data stream.
Fetch
Fetch data stream.
Fill
Fill fetch stream, new in draft-20 (Section 5.1.3).
Framed exactly as a fetch stream — a FETCH_HEADER and the fetch object records after it — and told apart from one only by what its Request ID names: a subscription that asked for a fill rather than a FETCH. It is a separate kind here because it belongs to a subscription’s lifetime rather than to a request of its own, and because an observer that could not tell the two apart would count a subscription’s fill as a fetch the application never made.
Datagram
Datagram.
Request
Request stream: the bidirectional stream one request and its response travel on.
Draft-20 Section 3.3 moved requests off the control plane and gave each one a bidirectional stream that begins with the request message. This is the only kind here that is not a data stream, and it is named because an observer that could not name it would see a request message with no stream to attach it to.
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 more