pub const fn starts_a_request_stream(ty: MessageType) -> boolExpand description
Whether ty is one of the seven message types draft-20 Section 3.3 lets a
bidirectional stream begin with.
The match is exhaustive over MessageType and deliberately has no
wildcard arm. That is the drift guard: MessageType is not
#[non_exhaustive], so the day a draft gains a message type this stops
compiling until someone says here whether the new type opens a request
stream. A wildcard would silently answer “no” for it.
Classification is over the typed MessageType, never over a raw u64,
because the number alone does not say which registry it came from: on
draft-20, 0x50 is SUBSCRIBE_NAMESPACE as a control message type and also a
SUBGROUP_HEADER as a unidirectional stream type.