Expand description
The module exposes an API for defining data prioritization strategies.
Types that implement the DataPrioritizer trait can be used to provide new data for an
HttpConnection to send to its peer. Neither the HttpConnection nor the DataPrioritizer
have control over exactly when the data is sent. This is left up to the particular client
implementations to trigger.
Structs§
- Simple
Prioritizer - An implementation of the
DataPrioritizertrait that is based on finding the first stream from the givenSessionStateinstance that can send data and returning this chunk.
Traits§
- Data
Prioritizer - A trait that types that want to provide data to an HTTP/2 connection need to implement.