Skip to main content

Module interest

Module interest 

Source
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§

ApplicationParameters
The Interest’s application-defined payload.
CanBePrefix
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.
ForwardingHint
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 Data matching a Name, optionally carrying application parameters and a signature.
InterestLifetime
How long, in milliseconds, the Interest stays pending at a forwarder while it waits for matching Data.
MustBeFresh
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.
SignSettings
Options controlling what Interest::sign/Interest::sign_checked include in the signature.