pub fn parse(payload: &[u8]) -> Result<WireGuardMessage, ParseError>Available on crate feature
wireguard only.Expand description
Parse a single UDP datagram as a WireGuard message.
Returns Err when the payload doesn’t fit any of the
four defined shapes (length + type-byte + reserved-zero
match required).