pub fn encode_interest(name: &Name, app_params: Option<&[u8]>) -> BytesExpand description
Encode a minimal Interest TLV.
Includes:
Namebuilt fromnameNonce(4 bytes, process-local counter XOR process ID — sufficient for loop detection; not cryptographically random)InterestLifetimefixed at 4 000 msApplicationParameters(TLV type 0x24) ifapp_paramsisSome
The returned Bytes is a complete, self-contained TLV suitable for direct
transmission over any NDN face.