Expand description
§ndn-packet – NDN packet types and wire-format codec
Defines the core NDN packet structures and their TLV serialization.
Fields are decoded lazily via OnceLock so that fast-path operations
(e.g. Content Store hits) avoid parsing unused fields.
§Key types
Name/NameComponent– NDN hierarchical names (SmallVec-backed).Interest– Interest packet with lazy decode and optionalSelector.Data– Data packet carrying content,MetaInfo, andSignatureInfo.Nack/NackReason– Network-layer negative acknowledgement.LpHeaders– NDNLPv2 link-protocol header fields.
§Feature flags
std(default) – enablesringsignatures and fragment reassembly. Disable forno_stdenvironments (an allocator is still required).
Re-exports§
pub use data::Data;pub use error::PacketError;pub use interest::Interest;pub use interest::Selector;pub use lp::CachePolicyType;pub use lp::LpHeaders;pub use meta_info::MetaInfo;pub use nack::Nack;pub use nack::NackReason;pub use name::Name;pub use name::NameComponent;pub use signature::SignatureInfo;pub use signature::SignatureType;
Modules§
- data
- encode
- error
- fragment
- NDNLPv2 fragmentation and reassembly.
- interest
- lp
- NDNLPv2 Link Protocol Packet framing.
- meta_
info - nack
- name
- signature
- tlv_
type - Well-known NDN TLV type codes.