pub fn decoder(
body: impl Body<Error = impl Debug> + Unpin,
content_type: Option<&HeaderValue>,
protocol: ProtocolVersion,
max_payload: u64,
) -> impl Stream<Item = Result<Packet, PacketParseError>>Expand description
Decode a payload into a stream of packets.