pub fn parse_proxy_v2(buf: &[u8]) -> Result<Parsed, ProxyV2Error>Expand description
Parse a PROXY protocol v2 header from the start of buf — pure and total: no I/O, no
panics on any input (the fuzz target’s invariant, P11). Errors take precedence over
Incomplete as soon as the offending byte is visible, so a bad peer is cut without
waiting for bytes that would change nothing.