pub fn peer_error(error: ConnectionError) -> ConnectionErrorExpand description
The same error, with any reason phrase the peer wrote passed through
escaped_bytes.
Both kinds of QUIC close carry a reason phrase of the peer’s own composition
(RFC 9000 §19.19), and quinn’s Display prints it as it arrived. Every
door a quinn::ConnectionError reaches a log line through goes through here
first, so that “a connection error a peer may have authored is escaped where
it enters this program” is one name rather than a rule to remember: the
handshake that never completed (crate::quic) and the connection that did
(crate::h3api::ConnectionError) are the two of them.
Every other variant is this server’s own account of what went wrong – a timeout, a transport error it raised itself – and is left alone.