Expand description
Interest, the packet used to request Data by name.
An Interest is a Name plus a handful of optional selectors and,
for signed Interests, application parameters and a signature. It’s
generic over its application parameters type, so a payload can be
carried either as raw Bytes or as a concrete type that implements
ndn_tlv::TlvEncode/ndn_tlv::TlvDecode.
Structs§
- Application
Parameters - The Interest’s application-defined payload.
- CanBe
Prefix - A marker element allowing the Interest to match Data whose name has this Interest’s name as a prefix, rather than requiring an exact match.
- Forwarding
Hint - Suggests a name for the forwarder to use when deciding where to forward this Interest, as a hint rather than a hard requirement.
- HopLimit
- The maximum number of forwarder hops this Interest may still travel, decremented by each forwarder it passes through.
- Interest
- A request for
Datamatching aName, optionally carrying application parameters and a signature. - Interest
Lifetime - How long, in milliseconds, the Interest stays pending at a forwarder while it waits for matching Data.
- Must
BeFresh - A marker element requiring the forwarder to return only Data that isn’t
stale, i.e. still within its
FreshnessPeriod. - Nonce
- A random value that lets a forwarder detect duplicate/looping Interests.
- Sign
Settings - Options controlling what
Interest::sign/Interest::sign_checkedinclude in the signature.