pub fn encode_nack(reason: NackReason, interest_wire: &[u8]) -> BytesExpand description
Encode a Nack as an NDNLPv2 LpPacket wrapping the original Interest.
The resulting packet is an LpPacket (0x64) containing:
- Nack header (0x0320) with NackReason (0x0321)
- Fragment (0x50) containing the original Interest wire bytes
interest_wire must be a complete Interest TLV (type + length + value).